|
|
@ -1,58 +1,67 @@
|
|
|
|
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 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
|
|
|
|
- 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 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
|
|
|
|
- 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 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 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
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
- job: Build
|
|
|
|
- job: Build
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- checkout: self
|
|
|
|
displayName: Restore
|
|
|
|
clean: false
|
|
|
|
inputs:
|
|
|
|
submodules: true
|
|
|
|
command: restore
|
|
|
|
persistCredentials: false
|
|
|
|
projects: '$(Parameters.RestoreBuildProjects)'
|
|
|
|
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: Restore
|
|
|
|
displayName: Build
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
command: restore
|
|
|
|
projects: '$(Parameters.RestoreBuildProjects)'
|
|
|
|
projects: '$(RestoreBuildProjects)'
|
|
|
|
arguments: '--configuration $(BuildConfiguration)'
|
|
|
|
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: Build
|
|
|
|
displayName: Test
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
projects: '$(RestoreBuildProjects)'
|
|
|
|
command: test
|
|
|
|
arguments: '--configuration $(BuildConfiguration)'
|
|
|
|
projects: '$(Parameters.TestProjects)'
|
|
|
|
|
|
|
|
arguments: '--configuration $(BuildConfiguration)'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
enabled: false
|
|
|
|
displayName: Test
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
command: test
|
|
|
|
displayName: Publish
|
|
|
|
projects: '$(RestoreBuildProjects)'
|
|
|
|
inputs:
|
|
|
|
arguments: '--configuration $(BuildConfiguration)'
|
|
|
|
command: publish
|
|
|
|
enabled: false
|
|
|
|
publishWebProjects: false
|
|
|
|
|
|
|
|
projects: '$(Parameters.RestoreBuildProjects)'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
|
|
|
|
displayName: Publish
|
|
|
|
zipAfterPublish: True
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
command: publish
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
publishWebProjects: false
|
|
|
|
displayName: 'Publish Artifact'
|
|
|
|
projects: '$(RestoreBuildProjects)'
|
|
|
|
inputs:
|
|
|
|
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
|
|
|
|
PathtoPublish: '$(build.artifactstagingdirectory)'
|
|
|
|
zipAfterPublish: True
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
|
|
|
|
displayName: 'Publish Artifact'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
|
|
|
PathtoPublish: '$(build.artifactstagingdirectory)'
|
|
|
|
|
|
|
|
artifactName: 'build-$(BuildConfiguration)'
|
|
|
|
|
|
|
|
zipAfterPublish: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|