Skip to content

Commit 001434f

Browse files
authored
Merge pull request #6646 from dibarbet/only_publish_succeeded
Ensure artifacts get published in a single folder
2 parents 9ea51d5 + 3cbfd01 commit 001434f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

azure-pipelines/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ jobs:
2929
displayName: 'Build VSIXs'
3030

3131
- task: PublishBuildArtifacts@1
32-
# Run the publish step so we have vsix's even if the tests fail.
33-
condition: succeededOrFailed()
32+
condition: succeeded()
3433
displayName: 'Publish VSIXs'
3534
inputs:
3635
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
37-
ArtifactName: 'VSIX_Prerelease_$(System.JobAttempt)'
36+
ArtifactName: 'VSIX_Prerelease'
3837

3938
- script: npm run test:artifacts
4039
displayName: 'Run artifacts tests'
@@ -59,12 +58,11 @@ jobs:
5958
displayName: 'Build VSIXs'
6059

6160
- task: PublishBuildArtifacts@1
62-
# Run the publish step so we have vsix's even if the tests fail.
63-
condition: succeededOrFailed()
61+
condition: succeeded()
6462
displayName: 'Publish VSIXs'
6563
inputs:
6664
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
67-
ArtifactName: 'VSIX_Release_$(System.JobAttempt)'
65+
ArtifactName: 'VSIX_Release'
6866

6967
- script: npm run test:artifacts
7068
displayName: 'Run artifacts tests'

0 commit comments

Comments
 (0)