From 17db5f37f436c8bf80bf1aa257b04d12bd5d13dd Mon Sep 17 00:00:00 2001 From: Martin Cimbalek Date: Fri, 16 Feb 2024 16:35:44 +0100 Subject: [PATCH] kie-issues#777: Allow restricting jenkins agent labels for pipelines --- .ci/jenkins/Jenkinsfile.branch | 2 +- .ci/jenkins/Jenkinsfile.bump-up-version | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/jenkins/Jenkinsfile.branch b/.ci/jenkins/Jenkinsfile.branch index 867711bc..4c3d0e58 100644 --- a/.ci/jenkins/Jenkinsfile.branch +++ b/.ci/jenkins/Jenkinsfile.branch @@ -12,7 +12,7 @@ TARGET_BRANCH="newBranch" pipeline { agent { - label "$AGENT_LABEL" + label util.avoidFaultyNodes(AGENT_LABEL) } options { timestamps() diff --git a/.ci/jenkins/Jenkinsfile.bump-up-version b/.ci/jenkins/Jenkinsfile.bump-up-version index 3c30d297..ed8c38e5 100644 --- a/.ci/jenkins/Jenkinsfile.bump-up-version +++ b/.ci/jenkins/Jenkinsfile.bump-up-version @@ -10,6 +10,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } }