-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-1.yml
71 lines (57 loc) · 1.76 KB
/
azure-pipelines-1.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
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
EnvironmentName: 'dev'
Resource: '"Controls and Assurance Tool API Dev"'
Scope: 'user_impersonation'
IncludeWebAPIPermissionRequest: True
steps:
- task: NodeTool@0
displayName: 'Use Node 8.9.4'
inputs:
versionSpec: '>=8.9.4 < 9.0.0'
#- script: |
# npm install
# npm run build
# displayName: 'npm install and build'
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: 'control-assurance-sp'
verbose: false
- task: Gulp@0
displayName: 'Run gulp set-web-api-permission-request'
inputs:
gulpFile: 'control-assurance-sp/gulpfile.js'
targets: 'set-web-api-permission-request'
arguments: '--resource $(Resource) --scope $(Scope)'
condition: and(succeeded(), eq(variables['IncludeWebAPIPermissionRequest'], 'True'))
- task: Gulp@0
displayName: 'Run gulp bundle'
inputs:
gulpFile: 'control-assurance-sp/gulpfile.js'
targets: bundle
arguments: '--ship'
workingDirectory: 'control-assurance-sp'
- task: Gulp@0
displayName: 'Run gulp package-solution'
inputs:
gulpFile: 'control-assurance-sp/gulpfile.js'
targets: 'package-solution'
arguments: '--ship'
workingDirectory: 'control-assurance-sp'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: 'control-assurance-sp/sharepoint/solution/'
Contents: 'caat-webparts.sppkg'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish artifacts: drop'