This is an automated email from the ASF dual-hosted git repository.

mcimbalek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-apps.git


The following commit(s) were added to refs/heads/main by this push:
     new 4adaf5c0c kie-issues#777: Allow restricting jenkins agent labels for 
pipelines (#1988)
4adaf5c0c is described below

commit 4adaf5c0cb8d06461a4904d020d395e53feeba14
Author: Martin Cimbalek <[email protected]>
AuthorDate: Tue Feb 20 14:52:08 2024 +0100

    kie-issues#777: Allow restricting jenkins agent labels for pipelines (#1988)
---
 .ci/jenkins/Jenkinsfile               | 2 +-
 .ci/jenkins/Jenkinsfile.deploy        | 1 +
 .ci/jenkins/Jenkinsfile.optaplanner   | 1 +
 .ci/jenkins/Jenkinsfile.promote       | 1 +
 .ci/jenkins/Jenkinsfile.setup-branch  | 1 +
 .ci/jenkins/Jenkinsfile.weekly.deploy | 1 +
 6 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile
index 12df4ee15..0ac95cc6c 100644
--- a/.ci/jenkins/Jenkinsfile
+++ b/.ci/jenkins/Jenkinsfile
@@ -4,7 +4,7 @@ pr_check_script = null
 
 pipeline {
     agent {
-        label 'ubuntu'
+        label util.avoidFaultyNodes('ubuntu')
     }
     options {
         timestamps()
diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy
index f6bb09df3..cce026209 100644
--- a/.ci/jenkins/Jenkinsfile.deploy
+++ b/.ci/jenkins/Jenkinsfile.deploy
@@ -11,6 +11,7 @@ pipeline {
         docker { 
             image env.AGENT_DOCKER_BUILDER_IMAGE
             args env.AGENT_DOCKER_BUILDER_ARGS
+            label util.avoidFaultyNodes()
         }
     }
 
diff --git a/.ci/jenkins/Jenkinsfile.optaplanner 
b/.ci/jenkins/Jenkinsfile.optaplanner
index 7c81c104f..be1c85db3 100644
--- a/.ci/jenkins/Jenkinsfile.optaplanner
+++ b/.ci/jenkins/Jenkinsfile.optaplanner
@@ -12,6 +12,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.promote b/.ci/jenkins/Jenkinsfile.promote
index 62804e64c..69472952a 100644
--- a/.ci/jenkins/Jenkinsfile.promote
+++ b/.ci/jenkins/Jenkinsfile.promote
@@ -9,6 +9,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 bfce706ea..7d7203aa1 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -11,6 +11,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 8ef332621..e446d1b50 100644
--- a/.ci/jenkins/Jenkinsfile.weekly.deploy
+++ b/.ci/jenkins/Jenkinsfile.weekly.deploy
@@ -11,6 +11,7 @@ pipeline {
         docker {
             image env.AGENT_DOCKER_BUILDER_IMAGE
             args env.AGENT_DOCKER_BUILDER_ARGS
+            label util.avoidFaultyNodes()
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to