From ec9ef846f6a1426609c17b2022c30b1ca0ad2458 Mon Sep 17 00:00:00 2001 From: Michal Karm Babacek Date: Thu, 7 Nov 2024 12:59:56 +0100 Subject: [PATCH] Job DSL: enable build for a commit --- .../jobs/builds/mandrel_master_windows_build_matrix.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jenkins/jobs/builds/mandrel_master_windows_build_matrix.groovy b/jenkins/jobs/builds/mandrel_master_windows_build_matrix.groovy index 0917109..ee19efc 100644 --- a/jenkins/jobs/builds/mandrel_master_windows_build_matrix.groovy +++ b/jenkins/jobs/builds/mandrel_master_windows_build_matrix.groovy @@ -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', @@ -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')