-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
76 lines (65 loc) · 1.69 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'Ubuntu-16.04'
continueOnError: false
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm run build
displayName: 'npm build'
- task: TfxInstaller@2
inputs:
version: 'v0.6.x'
- task: PackageAzureDevOpsExtension@2
inputs:
rootFolder:
outputPath: '$(Pipeline.Workspace)/Extension'
updateTasksVersion: false
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/Extension'
artifact: 'extension'
publishLocation: 'pipeline'
- stage: Deploy
jobs:
- job: Deploy
pool:
vmImage: 'Ubuntu-16.04'
continueOnError: false
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
targetPath: '$(Pipeline.Workspace)'
- task: TfxInstaller@2
inputs:
version: 'v0.6.x'
- task: PublishAzureDevOpsExtension@2
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'VS Marketplace'
fileType: 'vsix'
vsixFile: '$(Pipeline.Workspace)/extension/*.vsix'
extensionTag: '-test'
updateTasksVersion: false
extensionVisibility: 'private'
shareWith: 'mummy-test'
- task: InstallAzureDevOpsExtension@2
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'VS Marketplace'
method: 'id'
publisherId: 'mmajcica'
extensionId: 'retain-release'
extensionTag: '-test'
accounts: 'https://dev.azure.com/mummy-test'