forked from Azure/azure-sdk-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# External variables: | ||
# ProjectFile - The project to build and test. This variable is defined in pipeline web ui because we want to be able to provide it at queue time and that isn't supported in yaml yet. | ||
# VersioningProps - A collection of extra msbuild versioning properties like OfficialBuildId, PreReleaseVersionLabel, and DotNetFinalVersionKind | ||
|
||
trigger: | ||
- master | ||
|
||
variables: | ||
DotNetCoreVersion: '2.1.503' | ||
ProjectFile: mgmtci.proj | ||
|
||
jobs: | ||
- job: 'Build' | ||
|
||
pool: | ||
vmImage: 'vs2017-win2016' | ||
|
||
steps: | ||
- task: DotNetCoreInstaller@0 | ||
displayName: 'Use .NET Core sdk $(DotNetCoreVersion)' | ||
inputs: | ||
version: '$(DotNetCoreVersion)' | ||
|
||
- script: 'dotnet pack $(ProjectFile) -o $(Build.ArtifactStagingDirectory) -warnaserror $(VersioningProps)' | ||
displayName: 'Build and Package' | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
|
||
- task: PublishBuildArtifacts@1 | ||
condition: succeededOrFailed() | ||
displayName: 'Publish Artifacts' | ||
inputs: | ||
ArtifactName: packages |