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:
|
checkout scm:
|
||||||
[
|
[
|
||||||
$class: 'GitSCM',
|
$class: 'GitSCM',
|
||||||
userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins']],
|
userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-forge-ssh']],
|
||||||
branches: [[name: env.ref]],
|
branches: [[name: env.ref]],
|
||||||
extensions: [
|
extensions: [
|
||||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ],
|
[$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(
|
writeFile(
|
||||||
file : "./sshForJenkins.sh",
|
file : "./sshForJenkins.sh",
|
||||||
text: '''
|
text: '''
|
||||||
|
|
Loading…
Reference in New Issue