Update azure-pipelines.yml

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

@ -1,17 +1,11 @@
resources: resources:
repositories: self repositories: self
pr:
include:
- master
- release-*
pr: pr:
branches: branches:
include: include:
- master - master
- releases/* - release-*
pool: pool:
vmImage: ubuntu-16.04 vmImage: ubuntu-16.04
@ -23,40 +17,42 @@ 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 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 #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: jobs:
- task: DotNetCoreCLI@2 - job: Build
displayName: Restore steps:
inputs: - task: DotNetCoreCLI@2
command: restore displayName: Restore
projects: '$(Parameters.RestoreBuildProjects)' inputs:
command: restore
- task: DotNetCoreCLI@2 projects: '$(Parameters.RestoreBuildProjects)'
displayName: Build
inputs: - task: DotNetCoreCLI@2
projects: '$(Parameters.RestoreBuildProjects)' displayName: Build
arguments: '--configuration $(BuildConfiguration)' inputs:
projects: '$(Parameters.RestoreBuildProjects)'
- task: DotNetCoreCLI@2 arguments: '--configuration $(BuildConfiguration)'
displayName: Test
inputs: - task: DotNetCoreCLI@2
command: test displayName: Test
projects: '$(Parameters.TestProjects)' inputs:
arguments: '--configuration $(BuildConfiguration)' command: test
enabled: false projects: '$(Parameters.TestProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2 enabled: false
displayName: Publish
inputs: - task: DotNetCoreCLI@2
command: publish displayName: Publish
publishWebProjects: false inputs:
projects: '$(Parameters.RestoreBuildProjects)' command: publish
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' publishWebProjects: false
zipAfterPublish: True projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1 zipAfterPublish: True
displayName: 'Publish Artifact'
inputs: - task: PublishBuildArtifacts@1
PathtoPublish: '$(build.artifactstagingdirectory)' displayName: 'Publish Artifact'
enabled: false inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
enabled: false

Loading…
Cancel
Save