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 c223f0e commit fa4c056
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

pipeline {
agent {
label 'ubuntu'
label util.avoidFaultyNodes('ubuntu')
}
options {
timeout(time: 240, unit: 'MINUTES')
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.build-and-test
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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/Jenkinsfile.build-image
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
alwaysPull true
}
}
Expand Down
1 change: 1 addition & 0 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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 @@ -25,6 +25,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 @@ -23,6 +23,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.weekly.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pipeline {
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
label util.avoidFaultyNodes()
}
}

Expand Down

0 comments on commit fa4c056

Please sign in to comment.