From fa4c05616aab725239c00fef5533f5faa6094d4a Mon Sep 17 00:00:00 2001 From: Martin Cimbalek Date: Fri, 16 Feb 2024 12:26:36 +0100 Subject: [PATCH] kie-issues#777: Allow restricting jenkins agent labels for pipelines --- .ci/jenkins/Jenkinsfile | 2 +- .ci/jenkins/Jenkinsfile.build-and-test | 1 + .ci/jenkins/Jenkinsfile.build-image | 1 + .ci/jenkins/Jenkinsfile.deploy | 1 + .ci/jenkins/Jenkinsfile.promote | 1 + .ci/jenkins/Jenkinsfile.setup-branch | 1 + .ci/jenkins/Jenkinsfile.weekly.deploy | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile index bb77329f3..5780e5cc5 100644 --- a/.ci/jenkins/Jenkinsfile +++ b/.ci/jenkins/Jenkinsfile @@ -18,7 +18,7 @@ pipeline { agent { - label 'ubuntu' + label util.avoidFaultyNodes('ubuntu') } options { timeout(time: 240, unit: 'MINUTES') diff --git a/.ci/jenkins/Jenkinsfile.build-and-test b/.ci/jenkins/Jenkinsfile.build-and-test index 7849fd878..da1a49fbd 100644 --- a/.ci/jenkins/Jenkinsfile.build-and-test +++ b/.ci/jenkins/Jenkinsfile.build-and-test @@ -21,6 +21,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } } options { diff --git a/.ci/jenkins/Jenkinsfile.build-image b/.ci/jenkins/Jenkinsfile.build-image index 75347f858..b51a48cf3 100644 --- a/.ci/jenkins/Jenkinsfile.build-image +++ b/.ci/jenkins/Jenkinsfile.build-image @@ -23,6 +23,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() alwaysPull true } } diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 415e23053..2391a1ae8 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -29,6 +29,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } } diff --git a/.ci/jenkins/Jenkinsfile.promote b/.ci/jenkins/Jenkinsfile.promote index 27df81c9d..c3b2164b3 100644 --- a/.ci/jenkins/Jenkinsfile.promote +++ b/.ci/jenkins/Jenkinsfile.promote @@ -25,6 +25,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } } diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index 9f7159af5..5c5e06c85 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -23,6 +23,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } } diff --git a/.ci/jenkins/Jenkinsfile.weekly.deploy b/.ci/jenkins/Jenkinsfile.weekly.deploy index 045e23663..cf648e8a7 100644 --- a/.ci/jenkins/Jenkinsfile.weekly.deploy +++ b/.ci/jenkins/Jenkinsfile.weekly.deploy @@ -29,6 +29,7 @@ pipeline { docker { image env.AGENT_DOCKER_BUILDER_IMAGE args env.AGENT_DOCKER_BUILDER_ARGS + label util.avoidFaultyNodes() } }