Skip to content

Commit 8068346

Browse files
azure-sdkbenbp
andauthored
Sync eng/common directory with azure-sdk-tools for PR 2484 (Azure#22346)
* Add weekly pipeline generation to prepare-pipelines template * Add succeeded condition to pipeline generation pipelines Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent 3aa619e commit 8068346

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

eng/common/pipelines/templates/steps/prepare-pipelines.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,26 @@ steps:
7171
--debug
7272
${{parameters.TestsConventionOptions}}
7373
displayName: Create Live Test pipelines for public repository
74-
condition: ne('${{parameters.TestsConventionOptions}}','')
74+
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
75+
env:
76+
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)
77+
- script: >
78+
$(Pipeline.Workspace)/pipeline-generator/pipeline-generator
79+
--organization https://dev.azure.com/azure-sdk
80+
--project internal
81+
--prefix ${{parameters.Prefix}}
82+
--devopspath "\${{parameters.Prefix}}"
83+
--path $(System.DefaultWorkingDirectory)/sdk
84+
--endpoint Azure
85+
--repository ${{parameters.Repository}}
86+
--convention weekly
87+
--agentpool Hosted
88+
--branch refs/heads/$(DefaultBranch)
89+
--patvar PATVAR
90+
--debug
91+
${{parameters.TestsConventionOptions}}
92+
displayName: Create Weekly (Multi-Cloud) Live Test pipelines for public repository
93+
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
7594
env:
7695
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)
7796
@@ -132,6 +151,6 @@ steps:
132151
--no-schedule
133152
${{parameters.TestsConventionOptions}}
134153
displayName: Create Live Test pipelines for private repository
135-
condition: ne('${{parameters.TestsConventionOptions}}','')
154+
condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}',''))
136155
env:
137156
PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat)

0 commit comments

Comments
 (0)