Skip to content

Commit ef42069

Browse files
authored
always roll processed artifacts forward (microsoft#187465)
1 parent b062048 commit ef42069

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/azure-pipelines/product-publish.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ do {
6060

6161
$artifacts | ForEach-Object {
6262
$artifactName = $_.name
63+
6364
if($set.Add($artifactName)) {
6465
Write-Host "Processing artifact: '$artifactName. Downloading from: $($_.resource.downloadUrl)"
6566

@@ -98,8 +99,11 @@ do {
9899
} | Format-Table
99100

100101
exec { node build/azure-pipelines/common/createAsset.js $product $os $arch $type $asset.Name $asset.FullName }
101-
$artifactName >> $ARTIFACT_PROCESSED_FILE_PATH
102102
}
103+
104+
# Mark the artifact as processed. Make sure to keep the previously
105+
# processed artifacts in the file as well, not just from this run.
106+
$artifactName >> $ARTIFACT_PROCESSED_FILE_PATH
103107
}
104108

105109
# Get the timeline and see if it says the other stage completed

0 commit comments

Comments
 (0)