Skip to content

Commit b5d6ab6

Browse files
authored
kie-issues#777: Allow restricting jenkins agent labels for pipelines (#3061)
1 parent b4560db commit b5d6ab6

10 files changed

+10
-4
lines changed

.ci/jenkins/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pr_check_script = null
44

55
pipeline {
66
agent {
7-
label 'ubuntu'
7+
label util.avoidFaultyNodes('ubuntu')
88
}
99
options {
1010
timestamps()

.ci/jenkins/Jenkinsfile.deploy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pipeline {
1919
docker {
2020
image env.AGENT_DOCKER_BUILDER_IMAGE
2121
args env.AGENT_DOCKER_BUILDER_ARGS
22+
label util.avoidFaultyNodes()
2223
}
2324
}
2425

.ci/jenkins/Jenkinsfile.promote

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pipeline {
1616
docker {
1717
image env.AGENT_DOCKER_BUILDER_IMAGE
1818
args env.AGENT_DOCKER_BUILDER_ARGS
19+
label util.avoidFaultyNodes()
1920
}
2021
}
2122

.ci/jenkins/Jenkinsfile.setup-branch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pipeline {
88
docker {
99
image env.AGENT_DOCKER_BUILDER_IMAGE
1010
args env.AGENT_DOCKER_BUILDER_ARGS
11+
label util.avoidFaultyNodes()
1112
}
1213
}
1314

.ci/jenkins/Jenkinsfile.turtle

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

.ci/jenkins/project/Jenkinsfile.drools

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

.ci/jenkins/project/Jenkinsfile.nightly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ UNSTABLE_STAGES = [:]
1919
// Should be multibranch pipeline
2020
pipeline {
2121
agent {
22-
label 'ubuntu'
22+
label util.avoidFaultyNodes('ubuntu')
2323
}
2424

2525
options {

.ci/jenkins/project/Jenkinsfile.post-release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pipeline {
1313
docker {
1414
image env.AGENT_DOCKER_BUILDER_IMAGE
1515
args env.AGENT_DOCKER_BUILDER_ARGS
16+
label util.avoidFaultyNodes()
1617
}
1718
}
1819

.ci/jenkins/project/Jenkinsfile.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ releaseProperties = [:]
1818

1919
pipeline {
2020
agent {
21-
label 'ubuntu'
21+
label util.avoidFaultyNodes('ubuntu')
2222
}
2323

2424
environment {

.ci/jenkins/project/Jenkinsfile.setup-branch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ UNSTABLE_STAGES = [:]
1212

1313
pipeline {
1414
agent {
15-
label 'ubuntu'
15+
label util.avoidFaultyNodes('ubuntu')
1616
}
1717

1818
options {

0 commit comments

Comments
 (0)