Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 2484 (Azure#22346)
Browse files Browse the repository at this point in the history
* Add weekly pipeline generation to prepare-pipelines template

* Add succeeded condition to pipeline generation pipelines

Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
azure-sdk and benbp authored Jan 5, 2022
1 parent 3aa619e commit 8068346
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions eng/common/pipelines/templates/steps/prepare-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,26 @@ steps:
--debug
${{parameters.TestsConventionOptions}}
displayName: Create Live Test pipelines for public repository
condition: ne('${{parameters.TestsConventionOptions}}','')
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
env:
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)
- script: >
$(Pipeline.Workspace)/pipeline-generator/pipeline-generator
--organization https://dev.azure.com/azure-sdk
--project internal
--prefix ${{parameters.Prefix}}
--devopspath "\${{parameters.Prefix}}"
--path $(System.DefaultWorkingDirectory)/sdk
--endpoint Azure
--repository ${{parameters.Repository}}
--convention weekly
--agentpool Hosted
--branch refs/heads/$(DefaultBranch)
--patvar PATVAR
--debug
${{parameters.TestsConventionOptions}}
displayName: Create Weekly (Multi-Cloud) Live Test pipelines for public repository
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
env:
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)
Expand Down Expand Up @@ -132,6 +151,6 @@ steps:
--no-schedule
${{parameters.TestsConventionOptions}}
displayName: Create Live Test pipelines for private repository
condition: ne('${{parameters.TestsConventionOptions}}','')
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
env:
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)

0 comments on commit 8068346

Please sign in to comment.