Add dependency on LiveTest to release (#2457)

* Add dependency on LiveTest to release

* Add DependsOn to archetype-cpp-release.yml stages, conditions around LiveTest (if we don't execute live tests don't require them for release)

* Remove template conditions for LiveTest and always require it

* Revert "Remove template conditions for LiveTest and always require it"

This reverts commit dc0615ca084b7bb476cbc3806df70f92f2bf0304.
This commit is contained in:
Daniel Jurek 2021-06-30 13:41:16 -07:00 committed by GitHub
parent 468b78cdfb
commit 83b8feeb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -3,13 +3,15 @@ parameters:
ArtifactName: 'not-specified'
ServiceDirectory: not-specified
TestPipeline: false
DependsOn:
- Build
stages:
- ${{if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'))}}:
- ${{ each artifact in parameters.Artifacts }}:
- stage: Release_${{ replace(artifact.Name, '-', '_') }}
displayName: 'Release ${{artifact.name}}'
dependsOn: Build
dependsOn: ${{ parameters.DependsOn }}
condition: and(succeeded(), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-cpp'), ne(variables['Skip.AllRelease'], 'true'))
jobs:
@ -190,7 +192,7 @@ stages:
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
- stage: Integration
dependsOn: Build
dependsOn: ${{ parameters.DependsOn }}
condition: and(succeeded(), or(eq(variables['PublishDailyVcpkg'], 'true'), eq(variables['Build.Reason'],'Schedule')))
jobs:
- job: PublishDailyVcpkg

View File

@ -59,7 +59,10 @@ stages:
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
DependsOn:
- Build
- Build
# Only depend on `LiveTest` if there are live tests to execute
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(parameters.LiveTestCtestRegex, '')) }}:
- LiveTest
Artifacts: ${{ parameters.Artifacts }}
ArtifactName: packages
${{ if eq(parameters.ServiceDirectory, 'template') }}: