From 8068346199d2bdc315af70b564dc687397d4afa2 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 5 Jan 2022 15:59:34 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 2484 (#22346) * Add weekly pipeline generation to prepare-pipelines template * Add succeeded condition to pipeline generation pipelines Co-authored-by: Ben Broderick Phillips --- .../templates/steps/prepare-pipelines.yml | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/prepare-pipelines.yml b/eng/common/pipelines/templates/steps/prepare-pipelines.yml index 47fc611316d1..d85c48caf3a8 100644 --- a/eng/common/pipelines/templates/steps/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/steps/prepare-pipelines.yml @@ -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) @@ -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)