diff --git a/Jenkinsfile b/Jenkinsfile index bbb74d658604b43a0ba87c76f8b46f9de612abe6..53988786d416562491dcba07325ade6d55c99943 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -129,7 +129,7 @@ pipeline{ transfers: [ sshTransfer(cleanRemote: false, excludes: '', execCommand: "if [ `sudo docker service ls |grep -w ${jobName}|wc -l` -ge 1 ];then sudo docker service rm ${jobName};fi && \ sudo docker login -u ${user} -p ${passwd} https://${deployEnv}${registryDomain} && \ - sudo docker service create --with-registry-auth --name ${jobName} -p mode=host,published=${port},target=${port} --network test_gree --replicas 1 --constraint node.platform.os==linux --constraint node.hostname==${node} --log-driver=fluentd --log-opt fluentd-address=10.7.82.112:24224 --log-opt mode=non-blocking --log-opt tag=${index} --restart-condition on-failure --update-delay 10s --update-parallelism 1 --mount type=bind,source=/etc/hosts,target=/etc/hosts --mount type=bind,source=/lib64,target=/lib64 --mount type=bind,source=/var/log/service/${jobName},target=/var/log/service/${jobName} ${deployEnv}${registryDomain}/${repo}/${jobName}:${tagName}", + sudo docker service create --with-registry-auth --name ${jobName} -p mode=host,published=${port},target=${port} --network test_gree --replicas 1 --constraint node.platform.os==linux --constraint node.hostname==${node} --log-driver=fluentd --log-opt fluentd-address=10.7.82.112:24224 --log-opt mode=non-blocking --log-opt tag=${index} --restart-condition on-failure --update-delay 10s --update-parallelism 1 --mount type=bind,source=/etc/hosts,target=/etc/hosts --mount type=bind,source=/lib64,target=/lib64 ${deployEnv}${registryDomain}/${repo}/${jobName}:${tagName}", execTimeout: 120000, flatten: false, makeEmptyDirs: false,