@@ -12,31 +12,27 @@ resources:
12
12
- repository : self
13
13
type : git
14
14
ref : refs/heads/main
15
- - repository : 1esPipelines
15
+ - repository : MicroBuildTemplate
16
16
type : git
17
- name : 1ESPipelineTemplates/1ESPipelineTemplates
18
- ref : refs/tags/release
17
+ name : 1ESPipelineTemplates/MicroBuildTemplate
19
18
trigger : none
20
19
extends :
21
- template : v1/ 1ES.Official.PipelineTemplate. yml@1esPipelines
20
+ template : azure-pipelines/MicroBuild. 1ES.Official.yml@MicroBuildTemplate
22
21
parameters :
23
22
pool :
24
- name : 1ES_JavaTooling_Pool
25
- image : 1ES_JavaTooling_Windows_2022
26
- os : windows
27
- sdl :
28
- sourceAnalysisPool :
29
- name : 1ES_JavaTooling_Pool
30
- image : 1ES_JavaTooling_Windows_2022
31
- os : windows
32
- customBuildTags :
33
- - MigrationTooling-mseng-VSJava-13437-Tool
23
+ name : MSEngSS-MicroBuild2022-1ES
34
24
stages :
35
25
- stage : Build
36
26
jobs :
37
27
- job : Job_1
38
28
displayName : Agent job 1
39
29
templateContext :
30
+ mb :
31
+ signing :
32
+ enabled : true
33
+ signType : real
34
+ zipSources : false
35
+ feedSource : ' https://mseng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
40
36
outputs :
41
37
- output : pipelineArtifact
42
38
artifactName : vsix
@@ -58,13 +54,13 @@ extends:
58
54
displayName : Replace AI Key
59
55
inputs :
60
56
script :
npx [email protected] -I -f package.json -e "this.aiKey=\"%AI_KEY%\""
61
- - task : Bash@3
57
+ - task : PowerShell@2
62
58
displayName : update version in package json
63
59
inputs :
64
60
targetType : inline
65
61
script : |-
66
62
node ./scripts/prepare-nightly-build.js
67
- mv ./package.insiders.json ./package.json
63
+ Move-Item -Path " ./package.insiders.json" -Destination " ./package.json" -Force
68
64
- task : CmdLine@2
69
65
displayName : VSCE package --pre-release
70
66
inputs :
@@ -90,34 +86,12 @@ extends:
90
86
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
91
87
- script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
92
88
displayName : ' Generate extension manifest'
93
- - script : cp extension.manifest extension.signature.p7s
89
+ - script : copy extension.manifest extension.signature.p7s
94
90
displayName : ' Prepare manifest for signing'
95
- - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
91
+ - task : CmdLine@2
92
+ displayName : Sign extension
96
93
inputs :
97
- ConnectedServiceName : $(ConnectedServiceName)
98
- AppRegistrationClientId : $(AppRegistrationClientId)
99
- AppRegistrationTenantId : $(AppRegistrationTenantId)
100
- AuthAKVName : $(AuthAKVName)
101
- AuthCertName : $(AuthCertName)
102
- AuthSignCertName : $(AuthSignCertName)
103
- FolderPath : ' .'
104
- Pattern : ' extension.signature.p7s'
105
- signConfigType : inlineSignParams
106
- inlineOperation : |
107
- [
108
- {
109
- "keyCode": "CP-401405",
110
- "operationSetCode": "VSCodePublisherSign",
111
- "parameters" : [],
112
- "toolName": "sign",
113
- "toolVersion": "1.0"
114
- }
115
- ]
116
- SessionTimeout : 90
117
- MaxConcurrency : 25
118
- MaxRetryAttempts : 5
119
- PendingAnalysisWaitTimeoutMinutes : 5
120
- displayName : ' Sign extension'
94
+ script : dotnet %MBSIGN_APPFOLDER%/ddsignfiles.dll /file:extension.signature.p7s /certs:4014052
121
95
- task : CopyFiles@2
122
96
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
123
97
inputs :
0 commit comments