File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -57,6 +57,25 @@ extends:
5757 displayName : VSCE package
5858 inputs :
5959 script : npx @vscode/vsce@latest package
60+ # ## Copy files for APIScan
61+ - task : CopyFiles@2
62+ displayName : " Copy Files for APIScan"
63+ inputs :
64+ Contents : " *.vsix"
65+ TargetFolder : $(Agent.TempDirectory)/APIScanFiles
66+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
67+ # ## Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
68+ - task : APIScan@2
69+ displayName : Run APIScan
70+ inputs :
71+ softwareFolder : $(Agent.TempDirectory)/APIScanFiles
72+ softwareName : " vscode-java-pack"
73+ softwareVersionNum : " $(Build.BuildId)"
74+ isLargeApp : false
75+ toolVersion : " Latest"
76+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
77+ env :
78+ AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
6079 - task : CopyFiles@2
6180 displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
6281 inputs :
You can’t perform that action at this time.
0 commit comments