3636 inputs :
3737 versionSpec : 3.11
3838
39+ # Non-windows signing requires .NET 8 installed on the machine.
40+ - ${{ if ne(parameters.platform, 'windows') }} :
41+ - task : UseDotNet@2
42+ displayName : Use .NET Core sdk 8.0.x
43+ inputs :
44+ version : 8.0.x
45+
3946 # If we're in an official build, install the signing plugin
4047 - ${{ if eq(parameters.isOfficial, true) }} :
4148 - task : MicroBuildSigningPlugin@4
4552 zipSources : false
4653 feedSource : https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
4754 azureSubscription : ' MicroBuild Signing Task (DevDiv)'
55+ # ConnectedPMEServiceName is only required for CI builds. Windows has a different pme service name from non-windows.
56+ # THis service name is dependent on the AzDo org as well.
57+ ${{ if eq(variables['Build.Reason'], 'IndividualCI') }} :
58+ ${{ if ne(parameters.platform, 'windows') }} :
59+ ConnectedPMEServiceName : c24de2a5-cc7a-493d-95e4-8e5ff5cad2bc
60+ ${{ else }} :
61+ ConnectedPMEServiceName : 248d384a-b39b-46e3-8ad5-c2c210d5e7ca
4862 env :
4963 SignType : $(signType)
5064 TeamName : $(teamName)
@@ -59,13 +73,19 @@ jobs:
5973 displayName: 'Build VSIXs'
6074 env:
6175 SignType: $(signType)
76+ # Non-windows signing requires this token to be passed with signing step.
77+ ${{ if ne(parameters.platform, 'windows') }}:
78+ SYSTEM_ACCESSTOKEN: $(System.AccessToken)
6279
6380 - ${{ if eq(parameters.isOfficial, true) }} :
6481 - script : gulp signVsix
6582 condition : succeeded()
6683 displayName : ' Sign VSIXs'
6784 env :
85+ # Non-windows signing requires this token to be passed with signing step.
6886 SignType : $(signType)
87+ ${{ if ne(parameters.platform, 'windows') }} :
88+ SYSTEM_ACCESSTOKEN : $(System.AccessToken)
6989
7090 - task : CopyFiles@2
7191 inputs :
0 commit comments