forked from Azure/azure-functions-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
55 lines (48 loc) · 1.09 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
name: 2.1.$(devops_buildNumber)
pr:
branches:
include:
- master
- dev
- v3.x
trigger:
branches:
include:
- dev
- master
pool:
vmImage: 'vs2017-win2016'
variables:
devops_buildNumber: $[counter(format(''), 1500)]
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: 'install'
workingDir: '.\Build'
- task: Gulp@1
inputs:
buildNumber: $(devops_buildNumber)
gulpFile: '.\Build\gulpfile.js'
targets: 'build-all'
enableCodeCoverage: false
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\bin\VS'
Contents: '*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.Repository.LocalPath)\bin'
Contents: '*.zip'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'