-
Notifications
You must be signed in to change notification settings - Fork 23
/
azure-pipelines.yaml
89 lines (80 loc) · 2.51 KB
/
azure-pipelines.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
- task: Npm@1
displayName: 'NPM: Install Task Dependencies'
inputs:
workingDir: PublishHtmlReport
verbose: false
- task: Npm@1
displayName: 'npm install extension'
inputs:
workingDir: .
verbose: false
- task: Npm@1
displayName: 'build extension'
inputs:
command: custom
workingDir: .
verbose: false
customCommand: 'run build:cidev'
- task: PackageAzureDevOpsExtension@2
displayName: 'TFX: Package Extension Prod'
inputs:
rootFolder: .
patternManifest: 'azure-devops-extension.json'
publisherId: JakubRumpca
extensionId: azure-pipelines-html-report
extensionName: 'Html Viewer'
extensionVisibility: public
extensionPricing: free
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'main'))
- task: PackageAzureDevOpsExtension@2
displayName: 'TFX: Package Extension Dev'
inputs:
rootFolder: .
patternManifest: 'azure-devops-extension.json'
publisherId: JakubRumpca
extensionId: azure-pipelines-html-report
extensionTag: dev
extensionName: 'Html Viewer Dev'
extensionVersion: '1.0.$(Build.BuildId)'
updateTasksVersion: true
extensionVisibility: private
extensionPricing: free
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
- task: PublishAzureDevOpsExtension@2
displayName: 'TFX: Publish Extension Dev'
inputs:
connectedServiceName: JakubMarketPlace
rootFolder: .
patternManifest: 'azure-devops-extension.json'
publisherId: JakubRumpca
extensionId: azure-pipelines-html-report
extensionTag: dev
extensionName: 'Html Viewer Dev'
extensionVersion: '1.0.$(Build.BuildId)'
extensionVisibility: private
extensionPricing: free
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
- task: ShareAzureDevOpsExtension@2
displayName: 'TFX: Share Extension'
inputs:
connectedServiceName: JakubMarketPlace
method: vsix
vsixFile: '**.vsix'
accounts: 'maciejmaciejewski-dev'
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
- task: CopyFiles@2
displayName: 'Copy Files'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: '**.vsix'
TargetFolder: '$(Build.ArtifactStagingDirectory)/results'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/results'
condition: succeededOrFailed()