From fe34fb2310ba4e558f86fb4d8ee3116342309ed4 Mon Sep 17 00:00:00 2001 From: Ruben Abad Date: Tue, 30 Jan 2024 12:29:38 +0100 Subject: [PATCH] fix localBranch option usage --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 641bead98..f081b1130 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 '''