-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate all usages of
task: UseDotNet@2
to template `install-net.ym…
- Loading branch information
Konrad Jamrozik
authored
Jan 10, 2023
1 parent
292b1f8
commit d234a19
Showing
9 changed files
with
60 additions
and
99 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
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,45 +1,42 @@ | ||
pr: none | ||
|
||
trigger: none | ||
|
||
pool: | ||
name: azsdk-pool-mms-win-2022-general | ||
vmImage: MMS2022 | ||
|
||
variables: | ||
SwaggerParserInstallPath: $(Pipeline.Workspace)/SwaggerApiParser | ||
|
||
jobs: | ||
- job: CreateSwaggerReviewCodeFile | ||
displayName: 'Create Swagger API review token file' | ||
|
||
variables: | ||
- template: /eng/pipelines/templates/variables/globals.yml | ||
|
||
steps: | ||
- script: | | ||
mkdir SwaggerApiParser | ||
workingDirectory: $(Pipeline.Workspace) | ||
displayName: Setup working directory for Swagger Parser. | ||
- task: UseDotNet@2 | ||
displayName: 'Use .NET Core sdk 6.x' | ||
inputs: | ||
version: '6.x' | ||
|
||
- script: > | ||
dotnet tool install | ||
Azure.Sdk.Tools.SwaggerApiParser | ||
--version 1.0.0-dev.0.4 | ||
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json | ||
--tool-path $(SwaggerParserInstallPath) | ||
workingDirectory: $(SwaggerParserInstallPath) | ||
displayName: 'Install Swagger APIView Parser' | ||
- template: /eng/pipelines/templates/steps/apiview-review-gen.yml | ||
parameters: | ||
Reviews: $(Reviews) | ||
APIViewURL: $(APIViewURL) | ||
StorageContainerUrl: $(StorageContainerUrl) | ||
ApiviewGenScript: './Create-Apiview-Token-Swagger.ps1' | ||
pr: none | ||
|
||
trigger: none | ||
|
||
pool: | ||
name: azsdk-pool-mms-win-2022-general | ||
vmImage: MMS2022 | ||
|
||
variables: | ||
SwaggerParserInstallPath: $(Pipeline.Workspace)/SwaggerApiParser | ||
|
||
jobs: | ||
- job: CreateSwaggerReviewCodeFile | ||
displayName: 'Create Swagger API review token file' | ||
|
||
variables: | ||
- template: /eng/pipelines/templates/variables/globals.yml | ||
|
||
steps: | ||
- script: | | ||
mkdir SwaggerApiParser | ||
workingDirectory: $(Pipeline.Workspace) | ||
displayName: Setup working directory for Swagger Parser. | ||
- template: /eng/pipelines/templates/steps/install-dotnet.yml | ||
|
||
- script: > | ||
dotnet tool install | ||
Azure.Sdk.Tools.SwaggerApiParser | ||
--version 1.0.0-dev.0.4 | ||
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json | ||
--tool-path $(SwaggerParserInstallPath) | ||
workingDirectory: $(SwaggerParserInstallPath) | ||
displayName: 'Install Swagger APIView Parser' | ||
- template: /eng/pipelines/templates/steps/apiview-review-gen.yml | ||
parameters: | ||
Reviews: $(Reviews) | ||
APIViewURL: $(APIViewURL) | ||
StorageContainerUrl: $(StorageContainerUrl) | ||
ApiviewGenScript: './Create-Apiview-Token-Swagger.ps1' | ||
ParserPath: $(SwaggerParserInstallPath)/SwaggerApiParser |
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
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
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,6 +1,5 @@ | ||
variables: | ||
OfficialBuildId: $(Build.BuildNumber) | ||
skipComponentGovernanceDetection: true | ||
DotNetCoreVersion: '6.x' | ||
NotificationsCreatorVersion: '1.0.0-dev.20230108.1' | ||
PipelineOwnersExtractorVersion: '1.0.0-dev.20230105.1' |
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