Use existing Jenkins credential ID for deploy
This commit is contained in:
1 parent
c4e79860d1
commit
674dff3c52
1 file changed
+1
-1
Vendored
+1
-1
@@ -66,7 +66,7 @@ EOS
|
||||
stage('Deploy') {
|
||||
when { branch 'master' }
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'hexo-deploy-key', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'hexo_deploy_key', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
sh '''
|
||||
rsync -avz --chmod=D755,F644 \
|
||||
-e "ssh -i $DEPLOY_KEY -o StrictHostKeyChecking=accept-new" \
|
||||
|
||||
Reference in new issue
Block a user