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-drools.git


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

commit c5efe9d7ed8e5173bb83891a300bfa56883e2a0d
Author: Martin Cimbalek <[email protected]>
AuthorDate: Wed Feb 14 13:09:22 2024 +0100

    kie-issues#777: Allow restricting jenkins agent labels for pipelines (#5680)
    
    * kie-issues#777: Allow restricting jenkins agent labels for pipelines
    
    * force retest
---
 .ci/jenkins/Jenkinsfile                      | 2 +-
 .ci/jenkins/Jenkinsfile.deploy               | 1 +
 .ci/jenkins/Jenkinsfile.promote              | 1 +
 .ci/jenkins/Jenkinsfile.setup-branch         | 1 +
 .ci/jenkins/Jenkinsfile.weekly.deploy        | 1 +
 .ci/jenkins/project/Jenkinsfile.nightly      | 2 +-
 .ci/jenkins/project/Jenkinsfile.post-release | 1 +
 .ci/jenkins/project/Jenkinsfile.release      | 2 +-
 .ci/jenkins/project/Jenkinsfile.setup-branch | 2 +-
 .ci/jenkins/project/Jenkinsfile.weekly       | 2 +-
 10 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile
index dc43651187..24746e0568 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 cb3d8f2a83..c2d26989c6 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.promote b/.ci/jenkins/Jenkinsfile.promote
index 9001c28c62..04ff45d35d 100644
--- a/.ci/jenkins/Jenkinsfile.promote
+++ b/.ci/jenkins/Jenkinsfile.promote
@@ -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.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index bc492e2f75..a60578f9d4 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -8,6 +8,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 e9b3c87878..3d30a95762 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() //force retest
         }
     }
 
diff --git a/.ci/jenkins/project/Jenkinsfile.nightly 
b/.ci/jenkins/project/Jenkinsfile.nightly
index 187f1af31a..f16e1d65aa 100644
--- a/.ci/jenkins/project/Jenkinsfile.nightly
+++ b/.ci/jenkins/project/Jenkinsfile.nightly
@@ -17,7 +17,7 @@ UNSTABLE_STAGES = [:]
 // Should be multibranch pipeline
 pipeline {
     agent {
-        label 'ubuntu'
+        label util.avoidFaultyNodes('ubuntu')
     }
 
     options {
diff --git a/.ci/jenkins/project/Jenkinsfile.post-release 
b/.ci/jenkins/project/Jenkinsfile.post-release
index 5bfbe78ac3..c5c9f2a457 100644
--- a/.ci/jenkins/project/Jenkinsfile.post-release
+++ b/.ci/jenkins/project/Jenkinsfile.post-release
@@ -10,6 +10,7 @@ pipeline {
         docker { 
             image env.AGENT_DOCKER_BUILDER_IMAGE
             args env.AGENT_DOCKER_BUILDER_ARGS
+            label util.avoidFaultyNodes()
         }
     }
 
diff --git a/.ci/jenkins/project/Jenkinsfile.release 
b/.ci/jenkins/project/Jenkinsfile.release
index 726b95ce9c..28277e1d8c 100644
--- a/.ci/jenkins/project/Jenkinsfile.release
+++ b/.ci/jenkins/project/Jenkinsfile.release
@@ -18,7 +18,7 @@ releaseProperties = [:]
 
 pipeline {
     agent {
-        label 'ubuntu'
+        label util.avoidFaultyNodes('ubuntu')
     }
 
     environment {
diff --git a/.ci/jenkins/project/Jenkinsfile.setup-branch 
b/.ci/jenkins/project/Jenkinsfile.setup-branch
index 0aa94e6722..d44756800e 100644
--- a/.ci/jenkins/project/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/project/Jenkinsfile.setup-branch
@@ -12,7 +12,7 @@ UNSTABLE_STAGES = [:]
 
 pipeline {
     agent {
-        label 'ubuntu'
+        label util.avoidFaultyNodes('ubuntu')
     }
 
     options {
diff --git a/.ci/jenkins/project/Jenkinsfile.weekly 
b/.ci/jenkins/project/Jenkinsfile.weekly
index 41a79934d8..43c627ab89 100644
--- a/.ci/jenkins/project/Jenkinsfile.weekly
+++ b/.ci/jenkins/project/Jenkinsfile.weekly
@@ -17,7 +17,7 @@ UNSTABLE_STAGES = [:]
 // Should be multibranch pipeline
 pipeline {
     agent {
-        label 'ubuntu'
+        label util.avoidFaultyNodes('ubuntu')
     }
 
     options {


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

Reply via email to