File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 6161 nativeAotRid : win-x64
6262 platformName : .NET - Windows
6363
64+ - template : templates\fail-on-dirty-tree.yaml
65+
6466 - template : templates\fail-on-issue.yaml
6567
6668 - task : PublishPipelineArtifact@1
9294 nativeAotRid : osx-x64
9395 platformName : .NET - MacOS
9496
97+ - template : templates\fail-on-dirty-tree.yaml
98+
9599 - template : templates\fail-on-issue.yaml
96100
97101
Original file line number Diff line number Diff line change 1+ # Ensure the build did not produce any modified checked in files
2+
3+ parameters :
4+ condition : succeeded()
5+
6+ steps :
7+ - powershell : |
8+ # Run this to log the output for the user
9+ git status
10+
11+ # Run this to error the build if untracked files
12+ $process= git status --porcelain --untracked-files=no
13+
14+ if ($process)
15+ {
16+ Write-Host "##vso[task.logissue type=error]git tree has modified tracked files."
17+ Write-Host "##vso[task.complete result=Failed;]"
18+ }
19+ displayName : Ensure no modified committed files
20+ condition : ${{ parameters.condition }}
You can’t perform that action at this time.
0 commit comments