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 @@ -21,9 +21,9 @@ extends:
2121 template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
2222 parameters :
2323 pool :
24- os : linux
2524 name : 1ES_JavaTooling_Pool
26- image : 1ES_JavaTooling_Ubuntu-2004
25+ image : 1ES_JavaTooling_Windows_2022
26+ os : windows
2727 sdl :
2828 sourceAnalysisPool :
2929 name : 1ES_JavaTooling_Pool
@@ -69,6 +69,25 @@ extends:
6969 displayName : VSCE package --pre-release
7070 inputs :
7171 script : npx @vscode/vsce@latest package --pre-release
72+ # ## Copy files for APIScan
73+ - task : CopyFiles@2
74+ displayName : " Copy Files for APIScan"
75+ inputs :
76+ Contents : " *.vsix"
77+ TargetFolder : $(Agent.TempDirectory)/APIScanFiles
78+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
79+ # ## Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
80+ - task : APIScan@2
81+ displayName : Run APIScan
82+ inputs :
83+ softwareFolder : $(Agent.TempDirectory)/APIScanFiles
84+ softwareName : " vscode-java-pack"
85+ softwareVersionNum : " $(Build.BuildId)"
86+ isLargeApp : false
87+ toolVersion : " Latest"
88+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
89+ env :
90+ AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
7291 - task : CopyFiles@2
7392 displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
7493 inputs :
You can’t perform that action at this time.
0 commit comments