diff --git a/Jenkinsfile b/Jenkinsfile index 961375f7e..be7bd354d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { REGISTRY = "192.168.0.19:9011" DEPLOY_USER = "goojia" DEPLOY_HOST = "192.168.0.80" // 目标部署服务器 IP,按实际修改 - DEPLOY_BASE = "//home/docker/fangjia-coresite" // docker-compose 所在根目录 + DEPLOY_BASE = "/home/docker/fangjia-coresite" // docker-compose 所在根目录 } stages { @@ -88,7 +88,7 @@ pipeline { def dir = composeDir[project] def imageTag = env.BUILD_TAG.toLowerCase() - sshagent(['deploy-server']) { + sshagent(['agent-36-ssh']) { sh """ ssh -o StrictHostKeyChecking=no ${DEPLOY_USER}@${DEPLOY_HOST} ' cd ${DEPLOY_BASE}/${dir}