Update azure-pipelines.yml for Azure Pipelines

pull/947/head
Erwin de Haan 6 years ago
parent ef17ec700b
commit 480999e8e6

@ -1,42 +1,48 @@
resources:
repositories: self
pr: pr:
autoCancel: true
trigger:
batch: true
branches: branches:
include: include:
- master - master
- release-*
pool: pool:
vmImage: ubuntu-16.04 vmImage: ubuntu-16.04
#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 variables:
#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 - name: TestProjects
#Your build pipeline references an undefined variable named Parameters.TestProjects. 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 value: ''
#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 - name: RestoreBuildProjects
#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 value: 'Jellyfin.Server/Jellyfin.Server.csproj'
#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:
- job: Build - job: Build
steps: steps:
- checkout: self
clean: false
submodules: true
persistCredentials: false
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
displayName: Restore displayName: Restore
inputs: inputs:
command: restore command: restore
projects: '$(Parameters.RestoreBuildProjects)' projects: '$(RestoreBuildProjects)'
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
displayName: Build displayName: Build
inputs: inputs:
projects: '$(Parameters.RestoreBuildProjects)' projects: '$(RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)' arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2 - task: DotNetCoreCLI@2
displayName: Test displayName: Test
inputs: inputs:
command: test command: test
projects: '$(Parameters.TestProjects)' projects: '$(RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)' arguments: '--configuration $(BuildConfiguration)'
enabled: false enabled: false
@ -45,7 +51,7 @@ jobs:
inputs: inputs:
command: publish command: publish
publishWebProjects: false publishWebProjects: false
projects: '$(Parameters.RestoreBuildProjects)' projects: '$(RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)' arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True zipAfterPublish: True
@ -53,6 +59,9 @@ jobs:
displayName: 'Publish Artifact' displayName: 'Publish Artifact'
inputs: inputs:
PathtoPublish: '$(build.artifactstagingdirectory)' PathtoPublish: '$(build.artifactstagingdirectory)'
enabled: false artifactName: 'build-$(BuildConfiguration)'
zipAfterPublish: false

Loading…
Cancel
Save