-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
77 lines (77 loc) · 2.19 KB
/
azure-pipelines.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
trigger:
branches:
include:
- develop
- release/*
- feature/*
- refs/tags/*
paths:
exclude:
- README.md
- azure-pipelines.yml
- documentation
resources:
repositories:
- repository: AzurePipelinesTemplates
type: github
endpoint: FaganSC
name: FaganSC/AzurePipelinesTemplates
ref: master
variables:
node_version: '10.x'
package_manager: 'npm'
name: $(Build.DefinitionName) $(SourceBranchName) $(Date:yyyyMMdd)$(Rev:.r)
stages:
- stage: Versioning
jobs:
- template: general/versioning.yml@AzurePipelinesTemplates
- stage: Build
jobs:
- template: spfx/build.yml@AzurePipelinesTemplates
dependsOn:
- Versioning
- stage: Test
dependsOn:
- Build
jobs:
- template: spfx/test.yml@AzurePipelinesTemplates
parameters:
working_directory:
package_manager: ${{ variables.package_manager }}
node_version: ${{ variables.node_version }}
- stage: DeployDevelopment
displayName: Deploy to Development Tenant SharePoint App Catalog
dependsOn:
- Test
jobs:
- template: spfx/deploy.yml@AzurePipelinesTemplates
parameters:
target_environment: Development
variables_group: DevelopmentTenant
o365cli_deploy_extra_arguments: '--skipFeatureDeployment'
condition: succeeded()
- stage: DeployProduction
displayName: Deploy to Production Tenant SharePoint App Catalog
dependsOn:
- Test
jobs:
- template: spfx/deploy.yml@AzurePipelinesTemplates
parameters:
target_environment: Release
isPreRelease: False
hasChangeLog: True
variables_group: ProductionTenant
o365cli_deploy_extra_arguments: '--skipFeatureDeployment'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
- stage: GitHubRelease
displayName: GitHub Release
dependsOn:
- DeployProduction
jobs:
- template: spfx/release.yml@AzurePipelinesTemplates
parameters:
release_title: 'Release $(Build.BuildNumber)'
target_environment: Production
gitHubConnection: GitHub
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
isPreRelease: False