Skip to content

Commit

Permalink
Include refs for branches in sha1 for calling -any- jobs with a branch (
Browse files Browse the repository at this point in the history
#237)

Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
j-rivero authored Aug 18, 2020
1 parent f319ff0 commit 435d044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins-scripts/dsl/_configs_/GenericAnyJobGitHub.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ class GenericAnyJobGitHub
{
parameters
{
stringParam('sha1', '', 'commit or refname to build')
stringParam('sha1', '', 'commit or refname to build. To manually use a branch: origin/$branch_name')
}

scm
{
git {
remote {
github(github_repo)
refspec('+refs/pull/*:refs/remotes/origin/pr/*')
refspec('+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/*:refs/remotes/origin/*')
}
extensions {
relativeTargetDirectory(github_repo_name)
Expand Down

0 comments on commit 435d044

Please sign in to comment.