Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Erwin de Haan 2019-02-18 23:47:31 +01:00
parent 480999e8e6
commit 7c9803e135

View File

@ -1,11 +1,10 @@
pr:
autoCancel: true
name: Build
trigger:
batch: true
branches:
include:
- master
resources:
repositories:
- repository: self
type: github
name: EraYaN/jellyfin
pool:
vmImage: ubuntu-16.04
@ -16,6 +15,15 @@ variables:
- name: RestoreBuildProjects
value: 'Jellyfin.Server/Jellyfin.Server.csproj'
pr:
autoCancel: true
trigger:
batch: true
branches:
include:
- master
#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
jobs:
@ -53,7 +61,7 @@ jobs:
publishWebProjects: false
projects: '$(RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
@ -61,7 +69,3 @@ jobs:
PathtoPublish: '$(build.artifactstagingdirectory)'
artifactName: 'build-$(BuildConfiguration)'
zipAfterPublish: false