-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-pipelines.yml
70 lines (47 loc) · 1.75 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
resources:
- repo: self
clean: true
queue:
name: Hosted
demands:
- npm
- DotNetFramework
name: 1.4$(Rev:.r)
steps:
- task: Npm@0
displayName: 'npm install'
inputs:
arguments: '-g vsce'
- task: fakhrulhilal-maktum.GitDownloader.git-downloader.GitDownloader@0
displayName: 'Fetch git: https://github.com/sam-cogan/azure-xplat-arm-tooling'
inputs:
RepositoryUrl: 'https://github.com/sam-cogan/azure-xplat-arm-tooling'
RepositoryPath: '$(Build.GitDirectory)\snippetsrepo'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)\extension\'
inputs:
SourceFolder: Extension
TargetFolder: '$(build.artifactstagingdirectory)\extension\'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)\extension\snippets'
inputs:
SourceFolder: '$(Build.GitDirectory)\snippetsrepo\VSCode'
Contents: armsnippets.json
TargetFolder: '$(build.artifactstagingdirectory)\extension\snippets'
OverWrite: true
- task: PowerShell@1
displayName: 'PowerShell Script'
inputs:
scriptName: tools/UpdateSnippetFile.ps1
arguments: '-pathToFile $(build.artifactstagingdirectory)\extension\snippets\armsnippets.json -pathToPackageFile $(build.artifactstagingdirectory)\extension\package.json -buildNumber $(Build.BuildNumber)'
- task: CmdLine@1
displayName: 'Run vsce '
inputs:
filename: 'vsce '
arguments: package
workingFolder: '$(build.artifactstagingdirectory)\extension\'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: arm-snippets-$(Build.BuildNumber).vsix'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)\extension\arm-snippets-$(Build.BuildNumber).vsix'
ArtifactName: 'arm-snippets-$(Build.BuildNumber).vsix'