Commit 9c905f08 authored by 李世星's avatar 李世星

Merge branch 'lisx' into 'developer'

fix(修改jenkins): 202301301827

See merge request !18
parents 54f0b3e6 04f692e9
Pipeline #16082 passed with stage
in 0 seconds
......@@ -130,7 +130,7 @@ Rollback:【回滚】''',
sshTransfer(
cleanRemote: false,
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,
flatten: false,
makeEmptyDirs: false,
......@@ -199,7 +199,7 @@ Rollback:【回滚】''',
sshTransfer(
cleanRemote: false,
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,
flatten: 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