Skip to content

Commit

Permalink
test parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Oct 22, 2024
1 parent f9956ca commit 027cda2
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions eng/packages/http-client-csharp/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,35 @@ parameters:
displayName: 'Build prerelease version'
type: boolean
default: true
- name: ShouldRegenrate
displayName: 'Should regenerate'
type: boolean
default: true
- name: UseTypeSpecNext
displayName: 'Use TypeSpec Next'
type: boolean
default: false
- name: PublishTo
displayName: 'Publish to'
type: string
default: 'devops'
values: ['none', 'devops', 'public']
- name: ShouldPublish
displayName: 'Publish packages'
type: boolean
default: true
- name: PublishPublic
displayName: 'Publish to npmjs.org'
type: boolean
default: false
- name: ShouldRegenrate
displayName: 'Regenerate clients'
type: boolean
default: true

variables:
- template: /eng/pipelines/templates/variables/image.yml

extends:
template: /eng/common/pipelines/templates/archetype-typespec-emitter.yml
parameters:
BuildPrereleaseVersion: ${{ parameters.BuildPrereleaseVersion }}
UseTypeSpecNext: ${{ parameters.UseTypeSpecNext }}
${{ if eq(variables['System.TeamProject'], 'internal') }}:
ShouldPublish: ${{ ne(parameters.PublishTo, 'none') }}
PublishPublic: ${{ eq(parameters.PublishTo, 'public') }}
PublishDependsOnTest: ${{ eq(parameters.PublishTo, 'public') }}
ShouldPublish: ${{ parameters.ShouldPublish }}
PublishPublic: ${{ parameters.PublishPublic }}
PublishDependsOnTest: ${{ parameters.PublishPublic }}

ShouldRegenrate: ${{ parameters.ShouldRegenrate }}
RegenerationJobCount: 5
Expand Down

0 comments on commit 027cda2

Please sign in to comment.