This commit is contained in:
Gregory Hendrickson
2023-06-09 16:19:24 -07:00
parent be74c412ad
commit fef7d8eb3f

10
Jenkinsfile vendored
View File

@@ -26,15 +26,16 @@ pipeline {
stage('Pull and Deploy') {
steps {
def remote [:]
remote.name = 'ubuntu-kc'
remote.host = '172.16.11.90'
remote.allowAnyHosts = true
withCredentials([
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'userName')
]) {
script {
def remote = [:]
remote.name = 'ubuntu-kc'
remote.host = '172.16.11.90'
remote.user = userName
remote.identityFile = identity
remote.allowAnyHosts = true
writeFile file: 'run-pull-deploy.sh', text: '''
docker pull aisthanestha/docker-test-image:latest
@@ -52,6 +53,7 @@ pipeline {
}
}
}
}
post {
always {