From d0819ddc23b39a0ad52a0c412cdef1e172543abd Mon Sep 17 00:00:00 2001 From: Ashwin Das Date: Thu, 12 Dec 2024 13:49:12 -0500 Subject: [PATCH] [konflux] allow field to override konflux template url --- jobs/build/ocp4-konflux/Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jobs/build/ocp4-konflux/Jenkinsfile b/jobs/build/ocp4-konflux/Jenkinsfile index 7839758bf9..680aa055ae 100644 --- a/jobs/build/ocp4-konflux/Jenkinsfile +++ b/jobs/build/ocp4-konflux/Jenkinsfile @@ -42,6 +42,12 @@ node { description: 'Do not wait for other builds in this version to complete (use only if you know they will not conflict)', defaultValue: false ), + string( + name: 'PLR_TEMPLATE_COMMIT', + description: 'Override the Pipeline Run template commit from openshift-priv/art-konflux-template; Format is ghuser@commitish e.g. jupierce@covscan-to-podman-2', + defaultValue: "", + trim: true, + ), string( name: 'ASSEMBLY', description: 'The name of an assembly to rebase & build for. If assemblies are not enabled in group.yml, this parameter will be ignored', @@ -128,6 +134,9 @@ node { cmd << "--arch" << arch.trim() } } + if (params.PLR_TEMPLATE_COMMIT) { + cmd << "--plr-template=${params.PLR_TEMPLATE_COMMIT}" + } cmd += [ "--image-build-strategy=${params.IMAGE_BUILD_STRATEGY}", "--image-list=${commonlib.cleanCommaList(params.IMAGE_LIST)}"