@@ -21,9 +21,9 @@ extends:
21
21
template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
22
22
parameters :
23
23
pool :
24
- os : linux
25
24
name : 1ES_JavaTooling_Pool
26
- image : 1ES_JavaTooling_Ubuntu-2004
25
+ image : 1ES_JavaTooling_Windows_2022
26
+ os : windows
27
27
sdl :
28
28
sourceAnalysisPool :
29
29
name : 1ES_JavaTooling_Pool
@@ -94,11 +94,10 @@ extends:
94
94
"ToolVersion" : "1.0"
95
95
}
96
96
]
97
- - task : Bash@3
98
- displayName : Replace AI key
97
+ - task : CmdLine@2
98
+ displayName : Replace AI Key
99
99
inputs :
100
- targetType : inline
101
- script : npx json@9.0.6 -I -f package.json -e "this.aiKey=\"$AI_KEY\""
100
+ script : npx json@9.0.6 -I -f package.json -e "this.aiKey=\"%AI_KEY%\""
102
101
- task : Bash@3
103
102
displayName : Bash Script
104
103
inputs :
@@ -111,6 +110,25 @@ extends:
111
110
inputs :
112
111
targetType : inline
113
112
script : npx @vscode/vsce@latest package --pre-release
113
+ # ## Copy files for APIScan
114
+ - task : CopyFiles@2
115
+ displayName : " Copy Files for APIScan"
116
+ inputs :
117
+ Contents : " *.vsix"
118
+ TargetFolder : $(Agent.TempDirectory)/APIScanFiles
119
+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
120
+ # ## Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
121
+ - task : APIScan@2
122
+ displayName : Run APIScan
123
+ inputs :
124
+ softwareFolder : $(Agent.TempDirectory)/APIScanFiles
125
+ softwareName : " vscode-java-dependency"
126
+ softwareVersionNum : " $(Build.BuildId)"
127
+ isLargeApp : false
128
+ toolVersion : " Latest"
129
+ condition : and(succeeded(), ne(variables['DisableAPIScan'], 'true'))
130
+ env :
131
+ AzureServicesAuthConnectionString : runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(ApiScanSecret)
114
132
- task : CopyFiles@2
115
133
displayName : " Copy Files to: $(Build.ArtifactStagingDirectory)"
116
134
inputs :
0 commit comments