@@ -14,31 +14,27 @@ resources:
14
14
- repository : self
15
15
type : git
16
16
ref : refs/heads/main
17
- - repository : 1esPipelines
17
+ - repository : MicroBuildTemplate
18
18
type : git
19
- name : 1ESPipelineTemplates/1ESPipelineTemplates
20
- ref : refs/tags/release
19
+ name : 1ESPipelineTemplates/MicroBuildTemplate
21
20
trigger : none
22
21
extends :
23
- template : v1/ 1ES.Official.PipelineTemplate. yml@1esPipelines
22
+ template : azure-pipelines/MicroBuild. 1ES.Official.yml@MicroBuildTemplate
24
23
parameters :
25
24
pool :
26
- name : 1ES_JavaTooling_Pool
27
- image : 1ES_JavaTooling_Windows_2022
28
- os : windows
29
- sdl :
30
- sourceAnalysisPool :
31
- name : 1ES_JavaTooling_Pool
32
- image : 1ES_JavaTooling_Windows_2022
33
- os : windows
34
- customBuildTags :
35
- - MigrationTooling-mseng-VSJava-9157-Tool
25
+ name : MSEngSS-MicroBuild2022-1ES
36
26
stages :
37
27
- stage : Build
38
28
jobs :
39
29
- job : Job_1
40
30
displayName : VSCode-Java-Debug-RC
41
31
templateContext :
32
+ mb :
33
+ signing :
34
+ enabled : true
35
+ signType : real
36
+ zipSources : false
37
+ feedSource : ' https://mseng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
42
38
outputs :
43
39
- output : pipelineArtifact
44
40
artifactName : vsix
@@ -47,6 +43,10 @@ extends:
47
43
steps :
48
44
- checkout : self
49
45
fetchTags : true
46
+ - task : NodeTool@0
47
+ displayName : Use Node 20.x
48
+ inputs :
49
+ versionSpec : 20.x
50
50
- task : DownloadBuildArtifacts@1
51
51
displayName : Download Build Artifacts
52
52
inputs :
@@ -57,14 +57,19 @@ extends:
57
57
downloadType : specific
58
58
itemPattern : m2/com.microsoft.java.debug.plugin/com.microsoft.java.debug.plugin-*.jar
59
59
extractTars : false
60
+ - task : CopyFiles@2
61
+ displayName : ' cp plugin.jar to server'
62
+ inputs :
63
+ SourceFolder : ' $(System.ArtifactsDirectory)/m2/com.microsoft.java.debug.plugin'
64
+ Contents : |
65
+ com.microsoft.java.debug.plugin-*.jar
66
+ TargetFolder : $(Build.SourcesDirectory)/server
60
67
- task : CmdLine@2
61
- displayName : cp plugin .jar to server
68
+ displayName : Delete sources .jar and javadoc.jar from server
62
69
inputs :
63
- script : |-
64
- mkdir -p server
65
-
66
- cp $(System.ArtifactsDirectory)/m2/com.microsoft.java.debug.plugin/com.microsoft.java.debug.plugin-*[!a-zA-Z].jar server/
67
- ls -l server/
70
+ script : |
71
+ del server\com.microsoft.java.debug.plugin-*-sources.jar
72
+ del server\com.microsoft.java.debug.plugin-*-javadoc.jar
68
73
- task : Npm@1
69
74
displayName : npm install
70
75
inputs :
@@ -98,34 +103,12 @@ extends:
98
103
AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
99
104
- script : npx @vscode/vsce@latest generate-manifest -i extension.vsix -o extension.manifest
100
105
displayName : ' Generate extension manifest'
101
- - script : cp extension.manifest extension.signature.p7s
106
+ - script : copy extension.manifest extension.signature.p7s
102
107
displayName : ' Prepare manifest for signing'
103
- - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
108
+ - task : CmdLine@2
109
+ displayName : Sign extension
104
110
inputs :
105
- ConnectedServiceName : $(ConnectedServiceName)
106
- AppRegistrationClientId : $(AppRegistrationClientId)
107
- AppRegistrationTenantId : $(AppRegistrationTenantId)
108
- AuthAKVName : $(AuthAKVName)
109
- AuthCertName : $(AuthCertName)
110
- AuthSignCertName : $(AuthSignCertName)
111
- FolderPath : ' .'
112
- Pattern : ' extension.signature.p7s'
113
- signConfigType : inlineSignParams
114
- inlineOperation : |
115
- [
116
- {
117
- "keyCode": "CP-401405",
118
- "operationSetCode": "VSCodePublisherSign",
119
- "parameters" : [],
120
- "toolName": "sign",
121
- "toolVersion": "1.0"
122
- }
123
- ]
124
- SessionTimeout : 90
125
- MaxConcurrency : 25
126
- MaxRetryAttempts : 5
127
- PendingAnalysisWaitTimeoutMinutes : 5
128
- displayName : ' Sign extension'
111
+ script : dotnet %MBSIGN_APPFOLDER%/ddsignfiles.dll /file:extension.signature.p7s /certs:4014052
129
112
- task : CopyFiles@2
130
113
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)/vsix"
131
114
inputs :
0 commit comments