Skip to content

Commit

Permalink
Add mgmt CI yml file
Browse files Browse the repository at this point in the history
Add a yml file specific to mgmtci
  • Loading branch information
weshaggard committed Jul 13, 2019
1 parent 3904830 commit aa0d0d9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/dotnet/Mgmt.CI.BuildTools/ci.yml
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

0 comments on commit aa0d0d9

Please sign in to comment.