s
This commit is contained in:
Gregory Hendrickson
2023-06-09 16:16:57 -07:00
parent 41a299de4f
commit be74c412ad

8
Jenkinsfile vendored
View File

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