This commit is contained in:
Gregory Hendrickson
2023-06-09 15:23:23 -07:00
parent b56bb31511
commit 0fcbad6e00

4
Jenkinsfile vendored
View File

@@ -33,10 +33,10 @@ pipeline {
remote.password = 'Password1!' remote.password = 'Password1!'
remote.allowAnyHosts = true remote.allowAnyHosts = true
// Provide a label for the Jenkins agent // 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 stop docker-test-image &&
docker rm 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' sshScript remote: remote, script: 'run-pull-deploy.sh'
} }