From be74c412add76081068513e96aa5413b693bbdd4 Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 16:16:57 -0700 Subject: [PATCH] s s --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f60844..6e6d420 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,15 +26,15 @@ 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') ]) { - 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