Skip to content

Commit

Permalink
Only checkout specfied branch
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Davies committed Oct 8, 2020
1 parent 2310bfd commit 3d24d99
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pipelines/build/regeneration/build_pipeline_generator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,17 @@ node('master') {
disableJob : false,
triggerSchedule : ""
];
checkout([$class: 'GitSCM', userRemoteConfigs: [[url: config.GIT_URL]]])
checkout(
[
$class: 'GitSCM',
userRemoteConfigs: [
[
url: config.GIT_URL,
refspec: "+refs/heads/${config.BRANCH}:refs/remotes/origin/${config.BRANCH}"
]
]
]
)

def target;
try {
Expand Down

0 comments on commit 3d24d99

Please sign in to comment.