update jenkinsfile
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -50,7 +50,7 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
env.DEPLOY_BRANCH = env.BRANCH_NAME ?: 'main'
|
env.DEPLOY_BRANCH = env.BRANCH_NAME ?: 'main'
|
||||||
}
|
}
|
||||||
sshagent(credentials: ['deploy-ssh-key']) {
|
sshagent(credentials: ['mini2']) {
|
||||||
sh """
|
sh """
|
||||||
ssh -o StrictHostKeyChecking=no ${env.DEPLOY_USER}@${env.DEPLOY_HOST} << 'DEPLOY_EOF'
|
ssh -o StrictHostKeyChecking=no ${env.DEPLOY_USER}@${env.DEPLOY_HOST} << 'DEPLOY_EOF'
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in New Issue
Block a user