更新ssh
This commit is contained in:
Vendored
+2
-2
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user