diff --git a/eng/common/TestResources/remove-test-resources.yml b/eng/common/TestResources/remove-test-resources.yml index 611ffc4cf5dd1..bfff4571079c1 100644 --- a/eng/common/TestResources/remove-test-resources.yml +++ b/eng/common/TestResources/remove-test-resources.yml @@ -27,7 +27,7 @@ steps: - ${{ if eq('true', parameters.UseFederatedAuth) }}: - task: AzurePowerShell@5 displayName: Remove test resources - condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) + condition: and(succeededOrFailed(), eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) continueOnError: true env: PoolSubnet: $(PoolSubnet) @@ -71,7 +71,7 @@ steps: -Force ` -Verbose displayName: Remove test resources - condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) + condition: and(succeededOrFailed(), eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) continueOnError: true env: PoolSubnet: $(PoolSubnet) diff --git a/eng/common/TestResources/setup-environments.yml b/eng/common/TestResources/setup-environments.yml index a829b8dadfda8..7ddb523956ca7 100644 --- a/eng/common/TestResources/setup-environments.yml +++ b/eng/common/TestResources/setup-environments.yml @@ -18,7 +18,7 @@ steps: - bash: sudo chown -R runner ~/.Azure displayName: (MacOS) Grant access to ~/.Azure - condition: contains(variables['OSVmImage'], 'mac') + condition: and(succeeded(), contains(variables['OSVmImage'], 'mac')) - task: Powershell@2 displayName: Setup Az Modules and Dogfood Environment diff --git a/eng/common/pipelines/templates/jobs/npm-publish.yml b/eng/common/pipelines/templates/jobs/npm-publish.yml index e864fab9b0c74..abcf0c8c71533 100644 --- a/eng/common/pipelines/templates/jobs/npm-publish.yml +++ b/eng/common/pipelines/templates/jobs/npm-publish.yml @@ -16,7 +16,7 @@ parameters: jobs: - deployment: ${{ parameters.DeploymentName }} displayName: 'Publish ${{ parameters.ArtifactName }} to ${{ parameters.Registry }}' - condition: ${{ parameters.CustomCondition }} + condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }}) environment: ${{ parameters.Environment }} dependsOn: ${{ parameters.DependsOn }} variables: diff --git a/eng/common/pipelines/templates/stages/archetype-auto-release-prepare.yml b/eng/common/pipelines/templates/stages/archetype-auto-release-prepare.yml index 69e1f99722cb4..5f2fda9bfb3a6 100644 --- a/eng/common/pipelines/templates/stages/archetype-auto-release-prepare.yml +++ b/eng/common/pipelines/templates/stages/archetype-auto-release-prepare.yml @@ -32,7 +32,7 @@ stages: - stage: AutoReleasePrepare displayName: Auto-release prepare dependsOn: ${{ parameters.DependsOn }} - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) variables: - template: /eng/pipelines/templates/variables/globals.yml - template: /eng/pipelines/templates/variables/image.yml diff --git a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml index 3fa699b387d2d..13efcc0f22f44 100644 --- a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml +++ b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml @@ -31,11 +31,11 @@ steps: "registry=${{ parameters.registryUrl }}" | Out-File $npmrcPath Write-Host "##vso[task.setvariable variable=resolvedNpmrcPath]$npmrcPath" displayName: "Create .npmrc" - condition: ${{ parameters.CustomCondition }} + condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }}) - task: npmAuthenticate@0 displayName: Authenticate .npmrc - condition: ${{ parameters.CustomCondition }} + condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }}) inputs: workingFile: $(resolvedNpmrcPath) azureDevOpsServiceConnection: ${{ parameters.ServiceConnection }} diff --git a/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml index 3191a4928a273..27965de5fde12 100644 --- a/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml +++ b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml @@ -16,7 +16,7 @@ steps: pwsh: true workingDirectory: $(Pipeline.Workspace) displayName: Dump Package properties - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) - pwsh: | $setDailyDevBuild = "false" if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) { @@ -24,4 +24,4 @@ steps: } echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild" displayName: "Setup Versioning Properties" - condition: and(${{ parameters.Condition }}, eq(variables['SetDevVersion'], '')) + condition: and(succeededOrFailed(), ${{ parameters.Condition }}, eq(variables['SetDevVersion'], '')) diff --git a/eng/common/pipelines/templates/steps/install-azsdk-cli.yml b/eng/common/pipelines/templates/steps/install-azsdk-cli.yml index 6d26fc488f032..2c2e0b6db7c53 100644 --- a/eng/common/pipelines/templates/steps/install-azsdk-cli.yml +++ b/eng/common/pipelines/templates/steps/install-azsdk-cli.yml @@ -6,7 +6,7 @@ parameters: steps: - task: Powershell@2 displayName: 'Install Azure SDK Tools CLI' - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) inputs: targetType: 'inline' script: | diff --git a/eng/common/pipelines/templates/steps/set-default-branch.yml b/eng/common/pipelines/templates/steps/set-default-branch.yml index 12ec1be317b46..0d5dfab1b1a51 100644 --- a/eng/common/pipelines/templates/steps/set-default-branch.yml +++ b/eng/common/pipelines/templates/steps/set-default-branch.yml @@ -14,5 +14,5 @@ steps: Write-Host "##vso[task.setvariable variable=${{ parameters.DefaultBranchVariableName }}]$setDefaultBranch" displayName: "Setup Default Branch" workingDirectory: ${{ parameters.workingDirectory }} - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) ignoreLASTEXITCODE: true diff --git a/eng/common/pipelines/templates/steps/verify-changelog.yml b/eng/common/pipelines/templates/steps/verify-changelog.yml index 113e0a5e695a7..2061092bb3136 100644 --- a/eng/common/pipelines/templates/steps/verify-changelog.yml +++ b/eng/common/pipelines/templates/steps/verify-changelog.yml @@ -26,5 +26,5 @@ steps: pwsh: true workingDirectory: $(Pipeline.Workspace) displayName: Verify ChangeLogEntry for ${{ parameters.PackageName }} - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) continueOnError: false diff --git a/eng/common/pipelines/templates/steps/verify-changelogs.yml b/eng/common/pipelines/templates/steps/verify-changelogs.yml index 5d6cdf26e99af..fb5f7e32121b7 100644 --- a/eng/common/pipelines/templates/steps/verify-changelogs.yml +++ b/eng/common/pipelines/templates/steps/verify-changelogs.yml @@ -17,4 +17,4 @@ steps: -ForRelease $${{ parameters.ForRelease }} pwsh: true displayName: Verify ChangeLogEntries - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) diff --git a/eng/common/pipelines/templates/steps/verify-links.yml b/eng/common/pipelines/templates/steps/verify-links.yml index 9f629fdad96f7..34d32834d954f 100644 --- a/eng/common/pipelines/templates/steps/verify-links.yml +++ b/eng/common/pipelines/templates/steps/verify-links.yml @@ -17,7 +17,7 @@ steps: Condition: ${{ parameters.Condition }} - task: PowerShell@2 displayName: Link verification check - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) inputs: pwsh: true workingDirectory: '${{ parameters.WorkingDirectory }}/${{ parameters.Directory }}' diff --git a/eng/common/pipelines/templates/steps/verify-path-length.yml b/eng/common/pipelines/templates/steps/verify-path-length.yml index 259c663b9dc3f..60f52cb4ca814 100644 --- a/eng/common/pipelines/templates/steps/verify-path-length.yml +++ b/eng/common/pipelines/templates/steps/verify-path-length.yml @@ -7,7 +7,7 @@ parameters: steps: - task: PythonScript@0 displayName: Analyze Path Lengths - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) inputs: scriptSource: inline script: | diff --git a/eng/common/pipelines/templates/steps/verify-readme.yml b/eng/common/pipelines/templates/steps/verify-readme.yml index 6eeb174b323b6..f2303b86dca11 100644 --- a/eng/common/pipelines/templates/steps/verify-readme.yml +++ b/eng/common/pipelines/templates/steps/verify-readme.yml @@ -22,7 +22,7 @@ parameters: steps: - task: PowerShell@2 displayName: "Verify Readmes" - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) inputs: filePath: "eng/common/scripts/Verify-Readme.ps1" arguments: > diff --git a/eng/common/pipelines/templates/steps/verify-readmes.yml b/eng/common/pipelines/templates/steps/verify-readmes.yml index 40994767e8cd2..5987016f5b5c8 100644 --- a/eng/common/pipelines/templates/steps/verify-readmes.yml +++ b/eng/common/pipelines/templates/steps/verify-readmes.yml @@ -36,11 +36,11 @@ steps: $scanPaths = $paths -join "," Write-Host "##vso[task.setvariable variable=ScanPathArgument;]$scanPaths" displayName: Populate Scan Paths - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) - task: PowerShell@2 displayName: "Verify Readmes" - condition: ${{ parameters.Condition }} + condition: and(succeededOrFailed(), ${{ parameters.Condition }}) inputs: filePath: "eng/common/scripts/Verify-Readme.ps1" arguments: > diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 733a3962aa060..6f3f990ff090f 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -110,7 +110,7 @@ jobs: - output: pipelineArtifact targetPath: '$(Build.ArtifactStagingDirectory)/llm-artifacts' artifactName: "LLM Artifacts - $(System.JobName) - $(System.JobAttempt)" - condition: eq(variables['uploadLlmArtifacts'], 'true') + condition: and(succeeded(), eq(variables['uploadLlmArtifacts'], 'true')) sbomEnabled: false steps: diff --git a/eng/pipelines/templates/jobs/ci.versions.tests.yml b/eng/pipelines/templates/jobs/ci.versions.tests.yml index 07d8c4b01fba4..39d4d723b4d3f 100644 --- a/eng/pipelines/templates/jobs/ci.versions.tests.yml +++ b/eng/pipelines/templates/jobs/ci.versions.tests.yml @@ -32,7 +32,7 @@ parameters: jobs: - job: - condition: ne(variables['Skip.Test'], 'true') + condition: and(succeeded(), ne(variables['Skip.Test'], 'true')) variables: - template: /eng/pipelines/templates/variables/globals.yml diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index 3d3f41c3ac499..753687a718f2a 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -171,4 +171,3 @@ jobs: UseFederatedAuth: ${{ parameters.UseFederatedAuth }} ServiceConnection: ${{ parameters.CloudConfig.ServiceConnection }} SubscriptionConfigurationFilePaths: ${{ parameters.CloudConfig.SubscriptionConfigurationFilePaths }} - diff --git a/eng/pipelines/templates/stages/archetype-java-auto-release-batch.yml b/eng/pipelines/templates/stages/archetype-java-auto-release-batch.yml index 15458ebc71785..f3b8dd581889c 100644 --- a/eng/pipelines/templates/stages/archetype-java-auto-release-batch.yml +++ b/eng/pipelines/templates/stages/archetype-java-auto-release-batch.yml @@ -90,7 +90,7 @@ stages: - job: VerifyReleaseVersion displayName: Verify auto-release versions dependsOn: PrepareAutoReleasePackages - condition: ne(variables['Skip.VersionVerification'], 'true') + condition: and(succeeded(), ne(variables['Skip.VersionVerification'], 'true')) pool: name: $(LINUXPOOL) image: $(LINUXVMIMAGE) diff --git a/eng/pipelines/templates/stages/archetype-java-release-batch.yml b/eng/pipelines/templates/stages/archetype-java-release-batch.yml index 143df8382ef83..dfe010c587078 100644 --- a/eng/pipelines/templates/stages/archetype-java-release-batch.yml +++ b/eng/pipelines/templates/stages/archetype-java-release-batch.yml @@ -108,7 +108,7 @@ stages: jobs: - job: VerifyReleaseVersion displayName: "Verify release versions" - condition: ne(variables['Skip.VersionVerification'], 'true') + condition: and(succeeded(), ne(variables['Skip.VersionVerification'], 'true')) pool: name: $(LINUXPOOL) image: $(LINUXVMIMAGE) @@ -433,7 +433,7 @@ stages: - template: /eng/pipelines/templates/variables/image.yml jobs: - job: PublishPackages - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) + condition: and(succeeded(), or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal')))) displayName: Publish package to daily feed templateContext: diff --git a/eng/pipelines/templates/stages/archetype-java-release-pom-only.yml b/eng/pipelines/templates/stages/archetype-java-release-pom-only.yml index 3353db07e3da9..5d27acec4a834 100644 --- a/eng/pipelines/templates/stages/archetype-java-release-pom-only.yml +++ b/eng/pipelines/templates/stages/archetype-java-release-pom-only.yml @@ -85,7 +85,7 @@ stages: jobs: - job: TagRepository displayName: "Create release tag" - condition: ne(variables['Skip.TagRepository'], 'true') + condition: and(succeeded(), ne(variables['Skip.TagRepository'], 'true')) pool: name: $(WINDOWSPOOL) image: $(WINDOWSVMIMAGE) diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 6406f33788e1c..16b393576293e 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -101,7 +101,7 @@ extends: displayName: Skip PR validation - stage: Build - condition: not(and(eq(${{ parameters.SkipPrValidation }}, true), eq(variables['Build.Reason'], 'Manual'))) + condition: and(succeeded(), not(and(eq(${{ parameters.SkipPrValidation }}, true), eq(variables['Build.Reason'], 'Manual')))) variables: - template: /eng/pipelines/templates/variables/globals.yml - template: /eng/pipelines/templates/variables/image.yml @@ -208,4 +208,3 @@ extends: TestPipeline: ${{ parameters.TestPipeline }} PublicFeedUrl: ${{ parameters.PublicFeedUrl }} PublicPublishEnvironment: ${{ parameters.PublicPublishEnvironment }} - diff --git a/eng/pipelines/templates/steps/build-and-test-native.yml b/eng/pipelines/templates/steps/build-and-test-native.yml index 03aeae7e519b6..e804033c7a5e2 100644 --- a/eng/pipelines/templates/steps/build-and-test-native.yml +++ b/eng/pipelines/templates/steps/build-and-test-native.yml @@ -64,7 +64,7 @@ steps: # Generate the pom file with all the modules required for creating an aggregate code coverage report - task: PythonScript@0 displayName: 'Generate pom for aggregate code coverage report' - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) inputs: scriptPath: 'eng/scripts/generate_aggregate_pom.py' arguments: '--project-list $(ProjectList) --exclude-project-list ${{ parameters.ExcludeProjectList }} --type coverage' @@ -72,7 +72,7 @@ steps: - task: Maven@4 displayName: 'Generate aggregate code coverage report' - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) inputs: mavenPomFile: aggregate-pom.xml options: '$(DefaultOptions)' @@ -139,7 +139,7 @@ steps: # Azure DevOps only seems to respect the last code coverage result published, so only do this for Windows + Java LTS. # Code coverage reporting is set up only for Track 2 modules. - task: PublishCodeCoverageResults@2 - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) inputs: summaryFileLocation: target/site/test-coverage/jacoco.xml reportDirectory: target/site/test-coverage/ diff --git a/eng/pipelines/templates/steps/build-and-test.yml b/eng/pipelines/templates/steps/build-and-test.yml index 4eedfabd386e7..915678f1784d4 100644 --- a/eng/pipelines/templates/steps/build-and-test.yml +++ b/eng/pipelines/templates/steps/build-and-test.yml @@ -146,7 +146,7 @@ steps: scriptPath: 'eng/scripts/generate_aggregate_pom.py' arguments: '--project-list $(ProjectList) --exclude-project-list ${{ parameters.ExcludeProjectList }} --type coverage' workingDirectory: '$(System.DefaultWorkingDirectory)' - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) - task: Maven@4 displayName: 'Generate aggregate code coverage report' @@ -158,7 +158,7 @@ steps: jdkVersionOption: $(JavaTestVersion) jdkArchitectureOption: 'x64' goals: jacoco:report-aggregate - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) - task: Maven@4 displayName: 'Build for From Source run' @@ -285,4 +285,4 @@ steps: summaryFileLocation: target/site/test-coverage/jacoco.xml reportDirectory: target/site/test-coverage/ failIfCoverageEmpty: false - condition: eq(variables['RunAggregateReports'], 'true') + condition: and(succeeded(), eq(variables['RunAggregateReports'], 'true')) diff --git a/eng/pipelines/templates/steps/install-latest-jdk.yml b/eng/pipelines/templates/steps/install-latest-jdk.yml index 3c7273d819382..a04f0e6331d41 100644 --- a/eng/pipelines/templates/steps/install-latest-jdk.yml +++ b/eng/pipelines/templates/steps/install-latest-jdk.yml @@ -11,7 +11,7 @@ steps: key: 'jdk | "1.${{ parameters.LatestJdkFeatureVersion }}" | "$(CacheSalt)" | "$(Agent.OS)"' path: $(Agent.BuildDirectory)/jdk-${{ parameters.LatestJdkFeatureVersion }} displayName: 'Cache Latest JDK' - condition: eq(variables['IsLatestNonLtsJdk'], 'true') + condition: and(succeeded(), eq(variables['IsLatestNonLtsJdk'], 'true')) - task: PowerShell@2 displayName: 'Install Latest JDK' @@ -21,7 +21,7 @@ steps: -JdkFeatureVersion ${{ parameters.LatestJdkFeatureVersion }} workingDirectory: $(Agent.BuildDirectory) filePath: eng/scripts/Install-Latest-JDK.ps1 - condition: eq(variables['IsLatestNonLtsJdk'], 'true') + condition: and(succeeded(), eq(variables['IsLatestNonLtsJdk'], 'true')) - pwsh: | Write-Host "Java 8 JDK: $Env:JAVA_HOME_8_X64" @@ -30,7 +30,7 @@ steps: Write-Host "Java 21 JDK: $Env:JAVA_HOME_21_X64" Write-Host "Latest JDK: $Env:JAVA_HOME_${{ parameters.LatestJdkFeatureVersion }}_X64" displayName: 'Verify Latest JDK Install' - condition: eq(variables['IsLatestNonLtsJdk'], 'true') + condition: and(succeeded(), eq(variables['IsLatestNonLtsJdk'], 'true')) - task: PowerShell@2 displayName: 'Install JDK 8 on macOS' @@ -40,4 +40,4 @@ steps: -JdkFeatureVersion 8 workingDirectory: $(Agent.BuildDirectory) filePath: eng/scripts/Install-Latest-JDK.ps1 - condition: eq(variables['Agent.OS'], 'Darwin') + condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) diff --git a/sdk/spring/pipeline/compatibility-tests-job.yml b/sdk/spring/pipeline/compatibility-tests-job.yml index 6f931885329f3..62bc8d79531c3 100644 --- a/sdk/spring/pipeline/compatibility-tests-job.yml +++ b/sdk/spring/pipeline/compatibility-tests-job.yml @@ -68,7 +68,7 @@ jobs: - template: /eng/pipelines/templates/steps/maven-authenticate.yml - task: Maven@4 displayName: 'Install Unreleased Dependencies' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) inputs: mavenPomFile: sdk/spring/pipeline/ClientFromSourcePom.xml goals: 'install' @@ -81,25 +81,25 @@ jobs: - bash: | echo "##vso[task.setVariable variable=SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION]$(python ./sdk/spring/scripts/compatibility_get_spring_cloud_version.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION))" displayName: 'Set supported Spring version to environment variables' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) - bash: | echo "$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION):" echo "https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-dependencies/$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION)/spring-boot-dependencies-$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION).pom" echo "$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION):" echo "https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dependencies/$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION)/spring-cloud-dependencies-$(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION).pom" displayName: 'Log Spring version and Maven pom path' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) - script: | python ./sdk/spring/scripts/compatibility_insert_dependencymanagement.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION) -c $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION) displayName: 'Insert Spring dependency managements' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) - script: | python ./sdk/spring/scripts/compatibility_delete_version.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION) displayName: 'Remove unused dependency versions' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) - task: Maven@4 displayName: 'Run tests' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') + condition: and(succeeded(), ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '')) inputs: options: '$(DefaultOptions) -ntp -T ${{parameters.BuildParallelization}} ${{parameters.SkipOptions}} -Dcompiler.failondeprecatedstatus=- --fail-at-end' mavenPomFile: sdk/spring/pom.xml