From 0fcbad6e0029112c93daf7d3b700f4e2f0013e76 Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 15:23:23 -0700 Subject: [PATCH] s --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 99178fc..f201e0c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,10 +33,10 @@ pipeline { remote.password = 'Password1!' remote.allowAnyHosts = true // Provide a label for the Jenkins agent - writeFile file: 'run-pull-deploy.sh', text: 'docker pull aisthanestha/docker-test-image:latest && + writeFile file: 'run-pull-deploy.sh', text: '''docker pull aisthanestha/docker-test-image:latest && docker stop docker-test-image && docker rm docker-test-image && - docker run -d --name docker-test-image aisthanestha/docker-test-image:latest' + docker run -d --name docker-test-image aisthanestha/docker-test-image:latest''' sshScript remote: remote, script: 'run-pull-deploy.sh' }