Skip to content

Commit

Permalink
Add support for Windows agents (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
guythetechie authored Jan 10, 2023
1 parent 6bc6f6c commit 9c1e6b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions tools/azdo_pipelines/run-extractor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parameters:
type: string
displayName: API Specification Format
values:
- OpenAPIV3Yaml
- OpenAPIV3Yaml
- OpenAPIV3Json
- OpenAPIV2Yaml
- OpenAPIV2Json
Expand Down Expand Up @@ -68,7 +68,7 @@ stages:
- task: PowerShell@2
displayName: Fetch extractor
inputs:
targetType: 'inline'
targetType: "inline"
script: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
Expand All @@ -95,7 +95,7 @@ stages:
- task: PowerShell@2
displayName: Run extractor
inputs:
targetType: 'inline'
targetType: "inline"
script: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
Expand All @@ -117,9 +117,9 @@ stages:
AZURE_RESOURCE_GROUP_NAME: ${{ parameters.RESOURCE_GROUP_NAME }}
API_MANAGEMENT_SERVICE_NAME: ${{ parameters.APIM_INSTANCE_NAME }}
API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: $(Build.ArtifactStagingDirectory)/${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}
API_SPECIFICATION_FORMAT: ${{ parameters.API_SPECIFICATION_FORMAT }}
API_SPECIFICATION_FORMAT: ${{ parameters.API_SPECIFICATION_FORMAT }}
${{ if ne( parameters['CONFIGURATION_YAML_PATH'], 'Extract All' ) }}:
CONFIGURATION_YAML_PATH: ${{ parameters.CONFIGURATION_YAML_PATH }}
CONFIGURATION_YAML_PATH: ${{ parameters.CONFIGURATION_YAML_PATH }}
- task: PublishPipelineArtifact@1
displayName: Publish pipeline artifact
inputs:
Expand All @@ -143,7 +143,7 @@ stages:
- task: PowerShell@2
displayName: Create pull request
inputs:
targetType: 'inline'
targetType: "inline"
script: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
Expand Down Expand Up @@ -222,4 +222,4 @@ stages:
Write-Information "Execution complete."
pwsh: true
env:
AZURE_DEVOPS_EXT_PAT: "$(System.AccessToken)"
AZURE_DEVOPS_EXT_PAT: "$(System.AccessToken)"
4 changes: 2 additions & 2 deletions tools/azdo_pipelines/run-publisher-with-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ steps:
API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: $(Build.SourcesDirectory)/${{ parameters.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}
${{ if ne( parameters['API_MANAGEMENT_SERVICE_NAME'], '' ) }}:
API_MANAGEMENT_SERVICE_NAME: ${{ parameters.API_MANAGEMENT_SERVICE_NAME }}
? ${{ if eq( parameters['COMMIT_ID'], 'publish-artifacts-in-last-commit' ) }}
: COMMIT_ID: $(Build.SourceVersion)
${{ if eq( parameters['COMMIT_ID'], 'publish-artifacts-in-last-commit' ) }}:
COMMIT_ID: $(Build.SourceVersion)
${{ if ne( parameters['CONFIGURATION_YAML_PATH'], '' ) }}:
CONFIGURATION_YAML_PATH: ${{ parameters.CONFIGURATION_YAML_PATH }}

0 comments on commit 9c1e6b2

Please sign in to comment.