Skip to content

Commit

Permalink
kie-issues#777: Allow restricting jenkins agent labels for pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
cimbalek committed Feb 16, 2024
1 parent b4560db commit 5a97760
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pr_check_script = null

pipeline {
agent {
label 'ubuntu'
label util.avoidFaultyNodes('ubuntu')
}
options {
timestamps()
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}

Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.promote
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}

Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}

Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.turtle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}
options {
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/project/Jenkinsfile.drools
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}
environment {
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/project/Jenkinsfile.nightly
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ UNSTABLE_STAGES = [:]
// Should be multibranch pipeline
pipeline {
agent {
label 'ubuntu'
label util.avoidFaultyNodes('ubuntu')
}

options {
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/project/Jenkinsfile.post-release
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}

Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/project/Jenkinsfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ releaseProperties = [:]

pipeline {
agent {
label 'ubuntu'
label util.avoidFaultyNodes('ubuntu')
}

environment {
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/project/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ UNSTABLE_STAGES = [:]

pipeline {
agent {
label 'ubuntu'
label util.avoidFaultyNodes('ubuntu')
}

options {
Expand Down

0 comments on commit 5a97760

Please sign in to comment.