The Free Software Media System - Server Backend & API
Update azure-pipelines.yml for Azure Pipelines
Erwin de Haan480999e8e637
diff --git a/.azure/azure-pipelines.yml b/.azure/azure-pipelines.ymlindex d2f4dc393a..a69f0ab9fb 100644--- a/.azure/azure-pipelines.yml+++ b/.azure/azure-pipelines.yml@@ -1,58 +1,67 @@-resources:- repositories: self-pr:+ autoCancel: true++trigger:+ batch: truebranches:include:- master- - release-*pool: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-#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-#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-#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-#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:+ - name: TestProjects+ value: ''+ - name: RestoreBuildProjects+ value: 'Jellyfin.Server/Jellyfin.Server.csproj'+#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=865971jobs:- 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+ steps:+ - checkout: self+ clean: false+ submodules: true+ persistCredentials: false++ - task: DotNetCoreCLI@2+ displayName: Restore+ inputs:+ command: restore+ projects: '$(RestoreBuildProjects)'++ - task: DotNetCoreCLI@2+ displayName: Build+ inputs:+ projects: '$(RestoreBuildProjects)'+ arguments: '--configuration $(BuildConfiguration)'++ - task: DotNetCoreCLI@2+ displayName: Test+ inputs:+ command: test+ projects: '$(RestoreBuildProjects)'+ arguments: '--configuration $(BuildConfiguration)'+ enabled: false++ - task: DotNetCoreCLI@2+ displayName: Publish+ inputs:+ command: publish+ publishWebProjects: false+ projects: '$(RestoreBuildProjects)'+ arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'+ zipAfterPublish: True++ - task: PublishBuildArtifacts@1+ displayName: 'Publish Artifact'+ inputs:+ PathtoPublish: '$(build.artifactstagingdirectory)'+ artifactName: 'build-$(BuildConfiguration)'+ zipAfterPublish: false++