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