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:
parent
468b78cdfb
commit
83b8feeb35
@ -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
|
||||
|
||||
@ -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') }}:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user