Rétablir le bon identifiant pour l’authentification

This commit is contained in:
Benjamin Bohard 2022-08-11 12:01:32 +02:00
parent 03d07acc23
commit e8198240de
1 changed files with 2 additions and 2 deletions

View File

@ -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: '''