Adds a package version to build
This commit is contained in:
Родитель
d11f2c64cb
Коммит
cc6647b937
|
@ -5,6 +5,7 @@ trigger:
|
||||||
variables:
|
variables:
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
PackageVersion: $[format('0.5.0-{0}', variables['Build.BuildId'])]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Linux_Build_and_Test
|
- job: Linux_Build_and_Test
|
||||||
|
@ -40,11 +41,13 @@ jobs:
|
||||||
vmImage: 'Windows-2019'
|
vmImage: 'Windows-2019'
|
||||||
steps:
|
steps:
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: Build
|
displayName: Pack
|
||||||
inputs:
|
inputs:
|
||||||
command: build
|
command: 'pack'
|
||||||
projects: '**/Tooling.sln'
|
arguments: '---no-restore -c $(buildConfiguration) /p:TreatWarningsAsErrors=True'
|
||||||
arguments: '--configuration Release'
|
packagesToPack: 'Tooling.sln'
|
||||||
|
versioningScheme: 'byEnvVar'
|
||||||
|
versionEnvVar: 'PackageVersion'
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
inputs:
|
inputs:
|
||||||
command: test
|
command: test
|
||||||
|
|
Загрузка…
Ссылка в новой задаче