Skip to content

Commit 8c62c3e

Browse files
authored
Add succeeded() conditions to generate-project-list (Azure#45217)
1 parent 3af8f01 commit 8c62c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/pipelines/templates/steps/generate-project-list-and-cache-maven-repository.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ steps:
5151
ARTIFACTSJSON: $(ArtifactsJson)
5252
ADDITIONALMODULESJSON: $(AdditionalModulesJson)
5353
PACKAGEINFODIR: $(Build.ArtifactStagingDirectory)/PackageInfo
54-
condition: eq(variables['ArtifactPackageNames'], '')
54+
condition: and(succeeded(), eq(variables['ArtifactPackageNames'], ''))
5555

5656
- task: PowerShell@2
5757
displayName: Initialize project list variable for PR test run
@@ -63,7 +63,7 @@ steps:
6363
ADDITIONALMODULESJSON: $(AdditionalModulesJson)
6464
PACKAGEINFODIR: $(Build.ArtifactStagingDirectory)/PackageInfo
6565
ARTIFACTPACKAGENAMES: $(ArtifactPackageNames)
66-
condition: ne(variables['ArtifactPackageNames'], '')
66+
condition: and(succeeded(), ne(variables['ArtifactPackageNames'], ''))
6767

6868
# The Cache task, when restoring, can have a miss and still pass but, if nothing is built, the
6969
# Post-Job Cache will fail because there's no .m2/repository

0 commit comments

Comments
 (0)