Rétablir le bon identifiant pour l’authentification
This commit is contained in:
parent
03d07acc23
commit
e8198240de
|
@ -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: '''
|
||||
|
|
Loading…
Reference in New Issue