diff --git a/vars/compileDoc.groovy b/vars/compileDoc.groovy index 9ee26ec..f4f419d 100644 --- a/vars/compileDoc.groovy +++ b/vars/compileDoc.groovy @@ -69,7 +69,7 @@ def call() { checkout scm: [ $class: 'GitSCM', - userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins']], + userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-forge-ssh']], branches: [[name: env.ref]], extensions: [ [$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ], @@ -149,7 +149,7 @@ def call() { } } } - withCredentials([sshUserPrivateKey(credentialsId: 'jenkins', keyFileVariable: 'FORGE_SSH_KEY')]) { + withCredentials([sshUserPrivateKey(credentialsId: 'jenkins-forge-ssh', keyFileVariable: 'FORGE_SSH_KEY')]) { writeFile( file : "./sshForJenkins.sh", text: '''