Skip to content

Commit 16b7e1e

Browse files
committed
Update refspec
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
1 parent 99fdf57 commit 16b7e1e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

jenkins/pipelines/tracecompass-test.Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ pipeline {
4646
sh 'cp scripts/deploy-update-site.sh ${MAVEN_WORKSPACE_SCRIPTS}'
4747
sh 'cp scripts/deploy-doc.sh ${MAVEN_WORKSPACE_SCRIPTS}'
4848
sh 'cp scripts/deploy-javadoc.sh ${MAVEN_WORKSPACE_SCRIPTS}'
49-
println "gerrit branch name: $GERRIT_BRANCH_NAME, ${params.GERRIT_BRANCH_NAME}, ${GERRIT_BRANCH_NAME}, refspec: $GERRIT_REFSPEC"
5049
checkout([
5150
$class: 'GitSCM',
5251
branches: [[name: '$GERRIT_BRANCH_NAME']],
5352
doGenerateSubmoduleConfigurations: false,
5453
extensions: [[$class: 'CleanCheckout']],
5554
submoduleCfg: [],
56-
userRemoteConfigs: [[credentialsId: 'github-bot', refspec: '$GERRIT_REFSPEC', url: '$GERRIT_REPOSITORY_URL']]
55+
userRemoteConfigs: [[credentialsId: 'github-bot', refspec: '+refs/head/$GERRIT_BRANCH_NAME:refs/remotes/origin/$GERRIT_BRANCH_NAME', url: '$GERRIT_REPOSITORY_URL']]
5756
])
5857
sh 'mkdir -p ${WORKSPACE_SCRIPTS}'
5958
sh 'cp ${MAVEN_WORKSPACE_SCRIPTS}/deploy-rcp.sh ${WORKSPACE_SCRIPTS}'

0 commit comments

Comments
 (0)