From 5bdc3b31a6f686b38143a170f77797f57e0706a0 Mon Sep 17 00:00:00 2001 From: Gregory Hendrickson Date: Fri, 9 Jun 2023 16:05:51 -0700 Subject: [PATCH] s --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a586b2..c47d58f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,8 @@ pipeline { agent any environment { - DOCKERHUB_CREDENTIALS = credentials('dockerhub-cred') + DOCKERHUB_CREDENTIALS=credentials('dockerhub-cred') + SSH_CREDENTIALS=credentials('ssh-cred') } stages { @@ -26,7 +27,7 @@ pipeline { stage('Pull and Deploy') { steps { withCredentials([ - sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER') + sshUserPrivateKey(credentialsId: 'ssh-cred', identity: 'SSH_KEY', usernameVariable: 'SSH_USER') ]) { script { def remote = [:]