Skip to content

Commit 8e0b8ba

Browse files
committed
mergify: check all jenkins ci statuses
1 parent 654e697 commit 8e0b8ba

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.mergify.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pull_request_rules:
4747
remove:
4848
- "needs: review"
4949

50-
- name: "label needs: work when Jenkins CI failed"
50+
- name: "label needs: work when Jenkins CI failed - pr head"
5151
conditions:
5252
# Jenkins CI failing
5353
- status-failure~=continuous-integration/jenkins/pr-head
@@ -56,6 +56,15 @@ pull_request_rules:
5656
add:
5757
- "needs: work"
5858

59+
- name: "label needs: work when Jenkins CI failed - any of the pipeline"
60+
conditions:
61+
# Jenkins CI failing - any of the pipeline
62+
- status-failure~=^jenkins-ci
63+
actions:
64+
label:
65+
add:
66+
- "needs: work"
67+
5968
- name: "label needs: CI when at least one reviewers approval"
6069
conditions:
6170
# Labels
@@ -129,8 +138,10 @@ pull_request_rules:
129138

130139
# CI green policy
131140
- status-success~=continuous-integration/travis-ci/pr
132-
# Internal Jenkins - we rely on PR head to provide status - all passed
141+
# Internal Jenkins - we rely on PR head to provide status
133142
- status-success~=continuous-integration/jenkins/pr-head
143+
# any of the jenkins pipeline needs to be green
144+
- status-success~=^jenkins-ci
134145
actions:
135146
label:
136147
add:

0 commit comments

Comments
 (0)