|
13 | 13 | - job: 'Build_${{ parameters.platform }}_vsixs'
|
14 | 14 | pool: ${{ parameters.pool }}
|
15 | 15 | displayName: 'Build ${{ parameters.platform }} vsixs'
|
16 |
| - dependsOn: SetChannelVariable |
| 16 | + dependsOn: SetRunVariables |
17 | 17 | variables:
|
18 |
| - channel: $[ dependencies.SetChannelVariable.outputs['passOutput.channel'] ] |
| 18 | + channel: $[ dependencies.SetRunVariables.outputs['passChannel.channel'] ] |
| 19 | + signType: $[ dependencies.SetRunVariables.outputs['passSignType.signType'] ] |
| 20 | + teamName: DotNetCore |
19 | 21 | steps:
|
20 | 22 | - checkout: self
|
21 | 23 | clean: true
|
|
25 | 27 | - template: /azure-pipelines/prereqs.yml@self
|
26 | 28 | parameters:
|
27 | 29 | versionNumberOverride: ${{ parameters.versionNumberOverride }}
|
| 30 | + |
| 31 | + # If we're in an official build, install the signing plugin |
| 32 | + - ${{ if eq(parameters.isOfficial, true) }}: |
| 33 | + - task: MicroBuildSigningPlugin@4 |
| 34 | + displayName: 🔧 Install MicroBuild Signing Plugin |
| 35 | + inputs: |
| 36 | + signType: $(signType) |
| 37 | + zipSources: false |
| 38 | + feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json |
| 39 | + azureSubscription: 'MicroBuild Signing Task (DevDiv)' |
| 40 | + env: |
| 41 | + SignType: $(signType) |
| 42 | + TeamName: $(teamName) |
| 43 | + |
28 | 44 | - pwsh: |
|
29 | 45 | Write-Host "Building VSIXs for platform ${{ parameters.platform }} and channel $(channel)"
|
30 | 46 | if ("$(channel)" -eq "Release") {
|
|
33 | 49 | gulp vsix:release:package:${{ parameters.platform }} --prerelease
|
34 | 50 | }
|
35 | 51 | displayName: 'Build VSIXs'
|
| 52 | + env: |
| 53 | + SignType: $(signType) |
| 54 | +
|
| 55 | + - ${{ if eq(parameters.isOfficial, true) }}: |
| 56 | + - script: gulp signVsix |
| 57 | + condition: succeeded() |
| 58 | + displayName: 'Sign VSIXs' |
| 59 | + env: |
| 60 | + SignType: $(signType) |
36 | 61 |
|
37 | 62 | - ${{ if eq(parameters.isOfficial, true) }}:
|
38 | 63 | - task: 1ES.PublishBuildArtifacts@1
|
|
41 | 66 | inputs:
|
42 | 67 | PathtoPublish: '$(Build.SourcesDirectory)/vsix'
|
43 | 68 | ArtifactName: 'VSIX_$(channel)'
|
| 69 | + - task: 1ES.PublishBuildArtifacts@1 |
| 70 | + condition: succeeded() |
| 71 | + displayName: 'Publish Signing Logs' |
| 72 | + inputs: |
| 73 | + PathtoPublish: '$(Build.SourcesDirectory)/out/logs' |
| 74 | + ArtifactName: '${{ parameters.platform }} Signing Logs' |
44 | 75 | - ${{ else }}:
|
45 | 76 | - task: PublishBuildArtifacts@1
|
46 | 77 | condition: succeeded()
|
|
0 commit comments