Skip to content

Commit 17db5f3

Browse files
committed
kie-issues#777: Allow restricting jenkins agent labels for pipelines
1 parent df8e1d4 commit 17db5f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.ci/jenkins/Jenkinsfile.branch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TARGET_BRANCH="newBranch"
1212

1313
pipeline {
1414
agent {
15-
label "$AGENT_LABEL"
15+
label util.avoidFaultyNodes(AGENT_LABEL)
1616
}
1717
options {
1818
timestamps()

.ci/jenkins/Jenkinsfile.bump-up-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pipeline {
1010
docker {
1111
image env.AGENT_DOCKER_BUILDER_IMAGE
1212
args env.AGENT_DOCKER_BUILDER_ARGS
13+
label util.avoidFaultyNodes()
1314
}
1415
}
1516

0 commit comments

Comments
 (0)