Commit 04f692e9 authored by 李世星's avatar 李世星

fix(修改jenkins): 202301301827

parent 09f7c237
...@@ -130,7 +130,7 @@ Rollback:【回滚】''', ...@@ -130,7 +130,7 @@ Rollback:【回滚】''',
sshTransfer( sshTransfer(
cleanRemote: false, cleanRemote: false,
excludes: '', excludes: '',
execCommand: "docker stop ${APP_NAME} && docker rm ${APP_NAME} && cd /home/www/${APP_NAME} && docker run --restart=always -d --name=${APP_NAME} ${APP_NAME}:dev && docker image prune -f", execCommand: "docker stop ${APP_NAME} && docker rm ${APP_NAME} && cd /home/www/${APP_NAME} && docker run --restart=always -d --name=${APP_NAME} -v \$(pwd)/log:/app/log ${APP_NAME}:dev && docker image prune -f",
execTimeout: 120000, execTimeout: 120000,
flatten: false, flatten: false,
makeEmptyDirs: false, makeEmptyDirs: false,
...@@ -199,7 +199,7 @@ Rollback:【回滚】''', ...@@ -199,7 +199,7 @@ Rollback:【回滚】''',
sshTransfer( sshTransfer(
cleanRemote: false, cleanRemote: false,
excludes: '', excludes: '',
execCommand: "docker stop ${APP_NAME} && docker rm ${APP_NAME} && cd /home/www/${APP_NAME} && docker run --restart=always -d --name=${APP_NAME} ${APP_NAME}:latest && docker image prune -f", execCommand: "docker stop ${APP_NAME} && docker rm ${APP_NAME} && cd /home/www/${APP_NAME} && docker run --restart=always -d --name=${APP_NAME} \$(pwd)/log:/app/log ${APP_NAME}:latest && docker image prune -f",
execTimeout: 120000, execTimeout: 120000,
flatten: false, flatten: false,
makeEmptyDirs: false, makeEmptyDirs: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment