Skip to content

Commit

Permalink
test parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Oct 16, 2024
1 parent a553ecc commit c2af472
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ parameters:
default: false

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

extends:
template: /eng/pipelines/templates/stages/1es-redirect.yml
Expand Down
27 changes: 15 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,32 @@ 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

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 c2af472

Please sign in to comment.