aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-02-18 23:24:39 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-02-18 23:24:39 +0100
commitef17ec700bd18861967c7933727eb0e4a36a767a (patch)
tree2d7bea7cd2ddd423f96fe98c98d84cb79d0ed49c
parent4b34b0cfea5bee18b33b9dee9b71a6e3dc1dcaa2 (diff)
Update azure-pipelines.yml
-rw-r--r--.azure/azure-pipelines.yml80
1 files changed, 38 insertions, 42 deletions
diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.yml
index fc239032e..d2f4dc393 100644
--- a/.azure/azure-pipelines.yml
+++ b/.azure/azure-pipelines.yml
@@ -2,16 +2,10 @@ resources:
repositories: self
pr:
-include:
-- master
-- release-*
-
-
-pr:
branches:
include:
- master
- - releases/*
+ - release-*
pool:
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 the ‘BuildConfiguration’ variable, which you’ve 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
- displayName: Restore
- inputs:
- command: restore
- projects: '$(Parameters.RestoreBuildProjects)'
-
-- task: DotNetCoreCLI@2
- displayName: Build
- inputs:
- projects: '$(Parameters.RestoreBuildProjects)'
- arguments: '--configuration $(BuildConfiguration)'
-
-- task: DotNetCoreCLI@2
- displayName: Test
- inputs:
- command: test
- projects: '$(Parameters.TestProjects)'
- arguments: '--configuration $(BuildConfiguration)'
- enabled: false
-
-- task: DotNetCoreCLI@2
- displayName: Publish
- inputs:
- command: publish
- publishWebProjects: false
- projects: '$(Parameters.RestoreBuildProjects)'
- arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
- zipAfterPublish: True
-
-- task: PublishBuildArtifacts@1
- displayName: 'Publish Artifact'
- inputs:
- PathtoPublish: '$(build.artifactstagingdirectory)'
- enabled: false
+jobs:
+- job: Build
+ steps:
+ - task: DotNetCoreCLI@2
+ displayName: Restore
+ inputs:
+ command: restore
+ projects: '$(Parameters.RestoreBuildProjects)'
+
+ - task: DotNetCoreCLI@2
+ displayName: Build
+ inputs:
+ projects: '$(Parameters.RestoreBuildProjects)'
+ arguments: '--configuration $(BuildConfiguration)'
+
+ - task: DotNetCoreCLI@2
+ displayName: Test
+ inputs:
+ command: test
+ projects: '$(Parameters.TestProjects)'
+ arguments: '--configuration $(BuildConfiguration)'
+ enabled: false
+
+ - task: DotNetCoreCLI@2
+ displayName: Publish
+ inputs:
+ command: publish
+ publishWebProjects: false
+ projects: '$(Parameters.RestoreBuildProjects)'
+ arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
+ zipAfterPublish: True
+
+ - task: PublishBuildArtifacts@1
+ displayName: 'Publish Artifact'
+ inputs:
+ PathtoPublish: '$(build.artifactstagingdirectory)'
+ enabled: false