Skip to content

Commit

Permalink
Job DSL: enable build for a commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Karm committed Nov 7, 2024
1 parent af29e5c commit ec9ef84
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ matrixJob('mandrel-master-windows-build-matrix') {
'graal/master',
'e.g. your PR branch or a specific tag.'
)
stringParam(
'BRANCH_SELECTOR',
'refs/\${HEADS_OR_TAGS}/\${BRANCH_OR_TAG}',
'Leave as is or replace this whole property with a concrete commit sha.'
)
choiceParam('PACKAGING_REPOSITORY', Constants.PACKAGING_REPOSITORY, 'Mandrel packaging scripts.')
choiceParam(
'PACKAGING_REPOSITORY_HEADS_OR_TAGS',
Expand Down Expand Up @@ -74,7 +79,7 @@ matrixJob('mandrel-master-windows-build-matrix') {
remote {
url('${REPOSITORY}')
}
branches('refs/${HEADS_OR_TAGS}/${BRANCH_OR_TAG}')
branches('${BRANCH_SELECTOR}')
extensions {
localBranch('${BRANCH_OR_TAG}')
relativeTargetDirectory('mandrel')
Expand Down

0 comments on commit ec9ef84

Please sign in to comment.