fix localBranch option usage

This commit is contained in:
Ruben Abad 2024-01-30 12:29:38 +01:00
parent 7839ef4e4a
commit fe34fb2310
1 changed files with 14 additions and 1 deletions

15
Jenkinsfile vendored
View File

@ -203,7 +203,20 @@ pipeline
when { branch "ruben/jenkins_migration"; }
steps
{
checkout scmGit(branches: [[name: '*/ruben/jenkins_migration']], extensions: [checkoutOption(120), [[$class: 'LocalBranch', localBranch: "**"]], cloneOption(noTags:false, reference:'', shallow: false, timeout:120)], userRemoteConfigs: [[credentialsId: 'github_token_as_pwd_2', url: 'https://github.com/carla-simulator/carla-simulator.github.io.git']])
checkout scmGit(
branches: [[name: '*/ruben/jenkins_migration']],
extensions: [
checkoutOption(120),
localBranch("**"),
cloneOption(noTags:false, reference:'', shallow: false, timeout:120)
],
userRemoteConfigs: [
[
credentialsId: 'github_token_as_pwd_2',
url: 'https://github.com/carla-simulator/carla-simulator.github.io.git'
]
]
)
unstash name: 'carla_docs'
withCredentials([gitUsernamePassword(credentialsId: 'github_token_as_pwd_2', gitToolName: 'git-tool')]) {
sh '''