This commit is contained in:
Gregory Hendrickson
2023-06-09 14:42:00 -07:00
parent 383df90238
commit 4200333aff

23
Jenkinsfile vendored
View File

@@ -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
'''
} }
} }
} }