Skip to content

Commit 8c4a36c

Browse files
authored
Add pipeline that's always green, for doc-only PRs (#62509)
* Add pipeline that's always green, for doc-only PRs * Add comment
1 parent cb4eb4a commit 8c4a36c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.azure/pipelines/report-green.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This CI job only runs on PRs where all other jobs are skipped.
2+
# This allows Build Analysis to report green. Without this, no jobs would run,
3+
# causing Build Analysis to hang indefinitely (or until someone commented "ba-g {justification}" on the PR).
4+
5+
# Only run this on PRs
6+
trigger: none
7+
# Run for all branches, only on paths that no-op other jobs
8+
pr:
9+
autoCancel: true
10+
branches:
11+
include:
12+
- '*'
13+
paths:
14+
include:
15+
- .devcontainer/*
16+
- .github/*
17+
- .vscode/*
18+
- docs/*
19+
- '**/*.md'
20+
- LICENSE.TXT
21+
- THIRD-PARTY-NOTICES.TXT
22+
23+
# ABG - Always Be Green
24+
jobs:
25+
- template: /eng/common/templates/jobs/jobs.yml
26+
parameters:
27+
enableTelemetry: true
28+
helixRepo: dotnet/aspnetcore
29+
jobs:
30+
- job: Report_Green
31+
enableSBOM: false
32+
pool:
33+
vmImage: ubuntu-22.04
34+
steps:
35+
- powershell: |
36+
exit 0
37+
displayName: Exit 0

0 commit comments

Comments
 (0)