diff --git a/eng/Versions.props b/eng/Versions.props index b97f60ed6..f4bffaa78 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -3,7 +3,6 @@ rtm - release true false diff --git a/eng/pipelines/maintenance-packages.yml b/eng/pipelines/maintenance-packages.yml index 013c29629..63e7062e6 100644 --- a/eng/pipelines/maintenance-packages.yml +++ b/eng/pipelines/maintenance-packages.yml @@ -1,3 +1,13 @@ +parameters: +- name: DotNetFinalVersionKind + type: string + displayName: .NET Final Version Kind + values: + - none + - prerelease + - release + default: none + trigger: batch: true branches: @@ -20,11 +30,18 @@ variables: value: '' - name: _BuildJobDisplayName value: 'Build and Test' + - name: _DotNetFinalVersionKind + value: '' - ${{ else }}: - name: _AdditionalBuildArgs value: '/p:Test=false' - name: _BuildJobDisplayName value: 'Build, Sign and Publish' + - name: _DotNetFinalVersionKind + ${{ if eq(parameters.DotNetFinalVersionKind, 'none') }}: + value: '' + ${{ else }}: + value: /p:DotNetFinalVersionKind=${{ parameters.DotNetFinalVersionKind }} resources: repositories: @@ -91,6 +108,7 @@ extends: -configuration Release -prepareMachine /p:Test=false + $(_DotNetFinalVersionKind) $(_AdditionalBuildArgs) $(_InternalBuildArgs) displayName: $(_BuildJobDisplayName)