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:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -26,17 +26,18 @@ pipeline {
|
|||||||
|
|
||||||
stage('Pull and Deploy') {
|
stage('Pull and Deploy') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
node {
|
||||||
sshCommand remote: [
|
script {
|
||||||
credentialsId: 'SSH_CREDENTIALS',
|
sshCommand remote: [
|
||||||
host: '172.16.11.90',
|
credentialsId: 'SSH_CREDENTIALS',
|
||||||
username: 'administrator'
|
host: '172.16.11.90',
|
||||||
], command: '''
|
username: 'administrator'
|
||||||
docker pull aisthanestha/docker-test-image:latest
|
], command: '''
|
||||||
docker stop docker-test-image
|
docker pull aisthanestha/docker-test-image:latest
|
||||||
docker rm docker-test-image
|
docker stop docker-test-image
|
||||||
docker run -d --name docker-test-image aisthanestha/docker-test-image:latest
|
docker rm docker-test-image
|
||||||
'''
|
docker run -d --name docker-test-image aisthanestha/docker-test-image:latest
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user