-
Notifications
You must be signed in to change notification settings - Fork 26
/
PostmanCollectionJobTemplate.yml
53 lines (51 loc) · 1.54 KB
/
PostmanCollectionJobTemplate.yml
1
2
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
# JOB LEVEL TEMPLATE:
# Used to build PostmanCollection
# Reusable
# Meant to be run from the single PostmanCollectionTemplate pipeline (default), or
# from a multi-pipeline such as publishing (should specify alternate params)
parameters:
- name: ApiSpecSource
displayName: ApiSpecSource
type: string
default: -apiSpecGitUrl https://raw.githubusercontent.com/PlayFab/API_Specs/master/
- name: CommitMessage
displayName: CommitMessage
type: string
default: Automated build from ADO Pipeline
- name: GitDestBranch
displayName: GitDestBranch
type: string
default: doNotCommit
- name: GitJSetupBranch
displayName: GitJSetupBranch
type: string
default: master
- name: GitSdkGenBranch
displayName: GitSdkGenBranch
type: string
default: master
- name: isVersioned
displayName: isVersioned
type: boolean
default: false
- name: SelfTemplateResource
displayName: SelfTemplateResource
type: string
default: self
jobs:
- job: PostmanCollectionJobTemplate
steps:
- bash: echo PostmanCollectionJobTemplate
- job: PostmanCollectionTemplate
pool:
vmImage: 'windows-latest'
steps:
- template: PostmanCollectionStepTemplate.yml
parameters:
ApiSpecSource: ${{ parameters.ApiSpecSource }}
CommitMessage: ${{ parameters.CommitMessage }}
GitDestBranch: ${{ parameters.GitDestBranch }}
GitJSetupBranch: ${{ parameters.GitJSetupBranch }}
GitSdkGenBranch: ${{ parameters.GitSdkGenBranch }}
isVersioned: ${{ parameters.isVersioned }}
SelfTemplateResource: ${{ parameters.SelfTemplateResource }}