mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 14:55:14 +00:00
s
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user