Use existing Jenkins credential ID for deploy
Hexo-Butterfly/pipeline/head This commit looks good
Lint, build, test and deploy / build (push) Successful in 4m12s
Lint, build, test and deploy / deploy (push) Canceled after 0s
Lint, build, test and deploy / test (push) Canceled after 7s

This commit is contained in:
Discharge7443 committed 2026-12-04 18:22:04 -08:00
1 parent c4e79860d1
commit 674dff3c52
1 file changed
+1 -1
Vendored
+1 -1
View File
@@ -66,7 +66,7 @@ EOS
stage('Deploy') { stage('Deploy') {
when { branch 'master' } when { branch 'master' }
steps { steps {
withCredentials([sshUserPrivateKey(credentialsId: 'hexo-deploy-key', keyFileVariable: 'DEPLOY_KEY')]) { withCredentials([sshUserPrivateKey(credentialsId: 'hexo_deploy_key', keyFileVariable: 'DEPLOY_KEY')]) {
sh ''' sh '''
rsync -avz --chmod=D755,F644 \ rsync -avz --chmod=D755,F644 \
-e "ssh -i $DEPLOY_KEY -o StrictHostKeyChecking=accept-new" \ -e "ssh -i $DEPLOY_KEY -o StrictHostKeyChecking=accept-new" \