diff --git a/Jenkinsfile b/Jenkinsfile index b1fd064..d265a45 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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�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''' } } -} +} \ No newline at end of file