| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 
 | # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
  branches:
    include:
    - main
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/template/
    - scripts/
    # NOTE: DO NOT INCLUDE BELOW PATH WHEN COPYING THIS FILE
    # eng/common code changes trigger template pipeline for basic checking.
    - eng/common/
pr:
  branches:
    include:
    - main
    - feature/*
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/template/
    # NOTE: DO NOT INCLUDE BELOW PATH WHEN COPYING THIS FILE
    # eng/common code changes trigger template pipeline for basic checking.
    - eng/common/
parameters:
  - name: ReleaseToDevOpsOnly
    displayName: 'Release package to DevOps feed instead of PyPi'
    type: boolean
    default: false
  - name: AutoApproveRelease
    displayName: 'Automatically approve the release stage'
    type: boolean
    default: false
  # Switch to canary to test canary 1es branch. 1es template validation will set this parameter
  # to canary on run.
  - name: oneESTemplateTag
    type: string
    default: release
    values:
      - release
      - canary
extends:
  template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
  parameters:
    ${{ if eq(parameters.ReleaseToDevOpsOnly, 'true') }}:
      PublicFeed: 'public/storage-staging'
    ${{ if eq(parameters.AutoApproveRelease, 'true') }}:
      PublicPublishEnvironment: none
    oneESTemplateTag: ${{ parameters.oneESTemplateTag }}
    ServiceDirectory: template
    TestProxy: true
    Artifacts:
    - name: azure-template
      safeName: azuretemplate
 |