Skip to content

Commit

Permalink
Switch TestPipeline from variable to parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Oct 22, 2020
1 parent 281d7e5 commit c8dc068
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
steps:
- task: PowerShell@2
displayName: Prep template pipeline for release
condition: and(succeeded(),eq(variables['TestPipeline'],'true'))
condition: and(succeeded(),eq('${{ parameters.TestPipeline }}','true'))
inputs:
pwsh: true
workingDirectory: $(Build.SourcesDirectory)
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/templates/stages/archetype-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ stages:
steps:
- task: PowerShell@2
displayName: Prep template pipeline for release
condition: and(succeeded(),eq(variables['TestPipeline'],'true'))
condition: and(succeeded(),eq('${{ parameters.TestPipeline }}','true'))
inputs:
pwsh: true
workingDirectory: $(Build.SourcesDirectory)
Expand Down Expand Up @@ -185,6 +185,7 @@ stages:
DocRepoDestinationPath: 'docs-ref-services/'
GHReviewersVariable: 'OwningGHUser'
CIConfigs: $(CIConfigs)
CloseAfterOpenForTesting: '${{ parameters.TestPipeline }}'

- ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}:
- deployment: PublishDocs
Expand Down
2 changes: 1 addition & 1 deletion sdk/template/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ trigger:
paths:
include:
- sdk/template/
- eng/common/

pr:
branches:
Expand All @@ -26,6 +25,7 @@ extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: template
TestPipeline: true
Artifacts:
- name: azure-sdk-template
groupId: com.azure
Expand Down

0 comments on commit c8dc068

Please sign in to comment.