Update azure-pipelines.yml

pull/947/head
Erwin de Haan 6 years ago
parent 4b34b0cfea
commit ef17ec700b

@ -1,17 +1,11 @@
resources:
repositories: self
pr:
include:
- master
- release-*
pr:
branches:
include:
- master
- releases/*
- release-*
pool:
vmImage: ubuntu-16.04
@ -23,20 +17,22 @@ pool:
#Your build pipeline references an undefined variable named Parameters.RestoreBuildProjects. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972
#Your build pipeline references the BuildConfiguration variable, which youve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
steps:
- task: DotNetCoreCLI@2
jobs:
- job: Build
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Parameters.RestoreBuildProjects)'
- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
@ -44,7 +40,7 @@ steps:
arguments: '--configuration $(BuildConfiguration)'
enabled: false
- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
@ -53,7 +49,7 @@ steps:
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'

Loading…
Cancel
Save