From 5b1179d4a060c81c317467cff13fc953bddf7e5f Mon Sep 17 00:00:00 2001 From: Mitch Denny Date: Fri, 4 Oct 2019 09:47:22 +1000 Subject: [PATCH] Setup cosmos for release via unified pipelines. (#7581) --- eng/pipelines/templates/stages/cosmos-sdk-client.yml | 8 ++++++++ sdk/cosmos/ci.yml | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 9019431fad73..8b58f0f9b504 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -42,3 +42,11 @@ stages: PythonVersion: $(PythonVersion) OSName: $(OSName) ToxTestEnv: 'whl,sdist' + + # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. + - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: + - template: pipelines/stages/archetype-python-release.yml@azure-sdk-build-tools + parameters: + DependsOn: Build + Artifacts: ${{parameters.Artifacts}} + ArtifactName: packages \ No newline at end of file diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index aebb31536819..a27ad5c60083 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -7,14 +7,22 @@ resources: type: github name: Azure/azure-sdk-tools endpoint: azure + - repository: azure-sdk-build-tools + type: git + name: internal/azure-sdk-build-tools trigger: branches: include: - master + - feature/* + - hotfix/* + - release/* + - restapi* paths: include: - sdk/cosmos/ + - sdk/core/ pr: branches: @@ -27,8 +35,12 @@ pr: paths: include: - sdk/cosmos/ + - sdk/core/ stages: - template: ../../eng/pipelines/templates/stages/cosmos-sdk-client.yml parameters: ServiceDirectory: cosmos + Artifacts: + - name: azure_cosmos + safeName: azurecosmos \ No newline at end of file