@@ -16,9 +16,9 @@ extends:
1616 template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
1717 parameters :
1818 pool :
19- os : linux
2019 name : 1ES_JavaTooling_Pool
21- image : 1ES_JavaTooling_Ubuntu-2004
20+ image : 1ES_JavaTooling_Windows_2022
21+ os : windows
2222 sdl :
2323 sourceAnalysisPool :
2424 name : 1ES_JavaTooling_Pool
@@ -71,7 +71,7 @@ extends:
7171 - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
7272 displayName : ESRP CodeSigning
7373 inputs :
74- ConnectedServiceName : vscjavaci_codesign
74+ ConnectedServiceName : vscjavaci_esrp_codesign
7575 FolderPath : server
7676 Pattern : com.microsoft.java.test.*.jar
7777 signConfigType : inlineSignParams
@@ -98,11 +98,30 @@ extends:
9898 - task : CmdLine@2
9999 displayName : Replace AI Key
100100 inputs :
101- script :
npx [email protected] -I -f package.json -e "this.aiKey=\"$ AI_KEY\"" 101+ script :
npx [email protected] -I -f package.json -e "this.aiKey=\"% AI_KEY% \"" 102102 - task : CmdLine@2
103103 displayName : vsce package
104104 inputs :
105105 script : npx @vscode/vsce@latest package
106+ # ## Copy files for APIScan
107+ - task : CopyFiles@2
108+ displayName : " Copy Files for APIScan"
109+ inputs :
110+ Contents : " *.vsix"
111+ TargetFolder : $(Agent.TempDirectory)/APIScanFiles
112+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
113+ # ## Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
114+ - task : APIScan@2
115+ displayName : Run APIScan
116+ inputs :
117+ softwareFolder : $(Agent.TempDirectory)/APIScanFiles
118+ softwareName : " vscode-java-test"
119+ softwareVersionNum : " $(Build.BuildId)"
120+ isLargeApp : false
121+ toolVersion : " Latest"
122+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
123+ env :
124+ AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
106125 - task : CopyFiles@2
107126 displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
108127 inputs :
0 commit comments