fixed stupid issue
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -13,13 +13,13 @@ pipeline {
|
||||
sh '''if [ ! "$(docker ps -q -f name=worldcraftdiscordbot_1)" ]; then
|
||||
if [ "$(docker ps -aq -f status=exited -f name=worldcraftdiscordbot_1)" ]; then
|
||||
# cleanup
|
||||
docker rm<EFBFBD>worldcraftdiscordbot_1
|
||||
docker rm worldcraftdiscordbot_1
|
||||
fi
|
||||
# run your container
|
||||
NEW=worldcraftdiscordbot_1
|
||||
OLD=worldcraftdiscordbot_2
|
||||
docker run -d --name worldcraftdiscordbot_1 --restart unless-stopped worldcraftdiscordbot:v${env.BUILD_ID}
|
||||
else [ ! "$(docker ps -q -f name=worldcraftdiscordbot_2)" ]; then
|
||||
else [ ! "$(docker ps -q -f name=worldcraftdiscordbot_2)" ];
|
||||
if [ "$(docker ps -aq -f status=exited -f name=worldcraftdiscordbot_2)" ]; then
|
||||
# cleanup
|
||||
docker rm worldcraftdiscordbot_2
|
||||
@@ -39,4 +39,4 @@ fi'''
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user