trying something new
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
pipeline {
|
||||
parameters {
|
||||
agent any
|
||||
stages {
|
||||
stage ('Run Backup to David') {
|
||||
steps {
|
||||
script {
|
||||
sh "cp ${keyfile} ${WORKSPACE}/keyfile"
|
||||
sh "rsync -v -a -e 'ssh -i /home/backupwinschoten/.ssh/id_rsa -p 9897' --delete --info=progress2 ${env.borglocation} backupwinschoten@localhost:/storage/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user