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') {
steps {
script {
sshCommand remote: [
credentialsId: 'SSH_CREDENTIALS',
host: '172.16.11.90',
username: 'administrator'
], command: '''
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
'''
node {
script {
sshCommand remote: [
credentialsId: 'SSH_CREDENTIALS',
host: '172.16.11.90',
username: 'administrator'
], command: '''
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
'''
}
}
}