Skip to content

Commit

Permalink
Setup cosmos for release via unified pipelines. (Azure#7581)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdenny authored and yijxie committed Oct 9, 2019
1 parent 0b1202d commit 5b1179d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eng/pipelines/templates/stages/cosmos-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions sdk/cosmos/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 5b1179d

Please sign in to comment.