-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add install-global-tool yaml template (#8233)
Attempts to install the boots global tool have been failing: "C:\Program Files\dotnet\dotnet.exe" tool update boots -g --version 1.1.0.36 --add-source https://api.nuget.org/v3/index.json The requested version 1.1.0.36 is lower than existing version 1.1.0.712-preview2. Fix this by replacing the install-apkdiff and install-dotnet-test-slicer templates with a generic install-global-tool template that is also used to install boots.
- Loading branch information
Showing
5 changed files
with
29 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
build-tools/automation/yaml-templates/install-dotnet-test-slicer.yaml
This file was deleted.
Oops, something went wrong.
11 changes: 6 additions & 5 deletions
11
...ation/yaml-templates/install-apkdiff.yaml → ...n/yaml-templates/install-global-tool.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
parameters: | ||
version: '0.0.15' | ||
toolName: '' | ||
version: '' | ||
condition: succeeded() | ||
continueOnError: true | ||
|
||
steps: | ||
- powershell: dotnet tool uninstall apkdiff -g | ||
displayName: uninstall apkdiff | ||
- powershell: dotnet tool uninstall ${{ parameters.toolName }} -g | ||
displayName: uninstall ${{ parameters.toolName }} | ||
ignoreLASTEXITCODE: true | ||
condition: ${{ parameters.condition }} | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: install apkdiff ${{ parameters.version }} | ||
displayName: install ${{ parameters.toolName }} ${{ parameters.version }} | ||
condition: ${{ parameters.condition }} | ||
continueOnError: ${{ parameters.continueOnError }} | ||
inputs: | ||
command: custom | ||
custom: tool | ||
arguments: >- | ||
update apkdiff -g | ||
update ${{ parameters.toolName }} -g | ||
--version ${{ parameters.version }} | ||
--add-source "https://api.nuget.org/v3/index.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters