Skip to content

Commit 98a1033

Browse files
committed
Upload manifest.json (#49528)
1 parent fcadc84 commit 98a1033

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ jobs:
144144
- powershell: eng\scripts\KillProcesses.ps1
145145
displayName: Kill processes
146146
condition: always()
147+
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows')) }}:
148+
- powershell: |
149+
$snapshot = (Get-Content ./build/manifest.dummy.json | ConvertFrom-Json)
150+
$snapshot.builds[0].commit='$(Build.SourceVersion)'
151+
New-Item ./artifacts/manifest.json
152+
$snapshot | ConvertTo-Json -depth 10 | Out-File "./artifacts/manifest.json"
153+
displayName: Create manifest.json
147154
- ${{ if ne(parameters.variables.PB_SKIPTESTS, 'true') }}:
148155
- task: PublishTestResults@2
149156
displayName: Publish test results

build/manifest.dummy.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"builds": [
3+
{
4+
"repo": "https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore",
5+
"commit": "DUMMY",
6+
"branch": "refs/heads/internal/release/2.1"
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)