fixed errors

This commit is contained in:
2026-01-09 15:03:57 +01:00
parent 74fb167b88
commit d5c028f74b

View File

@@ -49,6 +49,7 @@ pipeline {
withCredentials([sshUserPrivateKey(credentialsId: '095cc365-ac40-4ddb-a078-2fa403092de0', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) { withCredentials([sshUserPrivateKey(credentialsId: '095cc365-ac40-4ddb-a078-2fa403092de0', keyFileVariable: 'keyfile', passphraseVariable: 'passphrase', usernameVariable: 'user')]) {
sh "cp ${keyfile} ${WORKSPACE}/keyfile" sh "cp ${keyfile} ${WORKSPACE}/keyfile"
sh "rsync -v -a -e -n 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9898' --delete --info=progress2 ${env.borglocation}/${directory} borgbackup@localhost:/borgbackup" sh "rsync -v -a -e -n 'ssh -i /home/borgbackup/.ssh/id_rsa -p 9898' --delete --info=progress2 ${env.borglocation}/${directory} borgbackup@localhost:/borgbackup"
}
} else { } else {
echo "Backup to External PI is skipped" echo "Backup to External PI is skipped"
} }