-
Notifications
You must be signed in to change notification settings - Fork 29
/
JavaScriptJobTemplate.yml
58 lines (56 loc) · 1.65 KB
/
JavaScriptJobTemplate.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
54
55
56
57
58
# JOB LEVEL TEMPLATE:
# Used to build JavaScript
# Reusable
# Meant to be run from the single JavaScriptTemplate 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: expectedNumApiGroups
displayName: expectedNumApiGroups
type: number
default: 14
- name: SelfTemplateResource
displayName: SelfTemplateResource
type: string
default: self
jobs:
- job: JavaScriptJobTemplate
steps:
- bash: echo JavaScriptJobTemplate
- job: JavaScriptTemplate
pool:
vmImage: 'windows-latest'
steps:
- template: JavaScriptStepTemplate.yml
parameters:
ApiSpecSource: ${{ parameters.ApiSpecSource }}
CommitMessage: ${{ parameters.CommitMessage }}
GitDestBranch: ${{ parameters.GitDestBranch }}
GitJSetupBranch: ${{ parameters.GitJSetupBranch }}
GitSdkGenBranch: ${{ parameters.GitSdkGenBranch }}
isVersioned: ${{ parameters.isVersioned }}
expectedNumApiGroups: ${{ parameters.expectedNumApiGroups }}
SelfTemplateResource: ${{ parameters.SelfTemplateResource }}