fixed stupid issue

This commit is contained in:
victormylle
2020-11-14 12:34:01 +01:00
parent 19035382b8
commit 6233123714

6
Jenkinsfile vendored
View File

@@ -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'''
}
}
}
}