2019-02-18 21:16:17 -05:00
|
|
|
name: $(Date:yyyyMMdd)$(Rev:.r)
|
2019-02-18 17:47:31 -05:00
|
|
|
|
|
|
|
variables:
|
2019-02-18 20:17:57 -05:00
|
|
|
- name: TestProjects
|
2020-01-09 11:39:17 -05:00
|
|
|
value: 'tests/**/*Tests.csproj'
|
2019-02-18 20:17:57 -05:00
|
|
|
- name: RestoreBuildProjects
|
|
|
|
value: 'Jellyfin.Server/Jellyfin.Server.csproj'
|
2019-02-18 17:47:31 -05:00
|
|
|
|
2019-02-18 16:36:24 -05:00
|
|
|
pr:
|
2019-02-18 17:42:24 -05:00
|
|
|
autoCancel: true
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
batch: true
|
2019-02-18 16:26:40 -05:00
|
|
|
|
2019-02-18 17:24:39 -05:00
|
|
|
jobs:
|
2019-02-18 20:17:57 -05:00
|
|
|
- job: main_build
|
|
|
|
displayName: Main Build
|
|
|
|
pool:
|
2019-07-05 05:17:48 -04:00
|
|
|
vmImage: ubuntu-latest
|
2019-02-18 20:17:57 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-01-05 02:01:42 -05:00
|
|
|
Release:
|
2019-02-18 20:17:57 -05:00
|
|
|
BuildConfiguration: Release
|
2020-01-05 02:01:42 -05:00
|
|
|
Debug:
|
2019-02-18 20:50:25 -05:00
|
|
|
BuildConfiguration: Debug
|
2019-02-18 21:16:17 -05:00
|
|
|
maxParallel: 2
|
2019-02-18 17:47:31 -05:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
2019-02-26 18:53:16 -05:00
|
|
|
clean: true
|
2019-02-18 17:47:31 -05:00
|
|
|
submodules: true
|
2019-09-17 10:23:27 -04:00
|
|
|
persistCredentials: true
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Clone Web Client (Master, Release, or Tag)"
|
2019-09-17 10:45:18 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
2019-09-17 10:23:27 -04:00
|
|
|
inputs:
|
2019-09-29 17:46:09 -04:00
|
|
|
script: 'git clone --single-branch --branch $(Build.SourceBranchName) --depth=1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web'
|
2019-09-17 10:40:11 -04:00
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Clone Web Client (PR)"
|
2019-09-17 10:45:18 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest'))
|
2019-09-17 10:40:11 -04:00
|
|
|
inputs:
|
2019-09-24 10:32:57 -04:00
|
|
|
script: 'git clone --single-branch --branch $(System.PullRequest.TargetBranch) --depth 1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web'
|
|
|
|
|
|
|
|
- task: NodeTool@0
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Install Node'
|
2019-09-24 10:32:57 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Build Web Client"
|
2019-09-24 10:32:57 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
|
|
|
inputs:
|
|
|
|
script: yarn install
|
|
|
|
workingDirectory: $(Agent.TempDirectory)/jellyfin-web
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Copy Web Client'
|
2019-09-24 10:38:51 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
2019-09-24 10:32:57 -04:00
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Agent.TempDirectory)/jellyfin-web/dist # Optional
|
|
|
|
contents: '**'
|
|
|
|
targetFolder: $(Build.SourcesDirectory)/MediaBrowser.WebDashboard/jellyfin-web
|
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
overWrite: true # Optional
|
|
|
|
flattenFolders: false # Optional
|
2019-02-18 17:42:24 -05:00
|
|
|
|
2020-01-05 01:59:31 -05:00
|
|
|
- task: UseDotNet@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Update DotNet'
|
2020-01-05 01:59:31 -05:00
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
|
|
|
version: 3.1.100
|
|
|
|
|
2019-02-18 17:47:31 -05:00
|
|
|
- task: DotNetCoreCLI@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Publish Server'
|
2019-02-18 17:47:31 -05:00
|
|
|
inputs:
|
|
|
|
command: publish
|
|
|
|
publishWebProjects: false
|
|
|
|
projects: '$(RestoreBuildProjects)'
|
|
|
|
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
|
2019-02-18 20:55:10 -05:00
|
|
|
zipAfterPublish: false
|
2019-02-18 16:26:40 -05:00
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-02-18 20:17:57 -05:00
|
|
|
displayName: 'Publish Artifact Naming'
|
2019-03-13 16:09:08 -04:00
|
|
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:02:35 -04:00
|
|
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/Emby.Naming.dll'
|
2019-02-18 20:17:57 -05:00
|
|
|
artifactName: 'Jellyfin.Naming'
|
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-02-18 20:17:57 -05:00
|
|
|
displayName: 'Publish Artifact Controller'
|
2019-03-13 16:09:08 -04:00
|
|
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:02:35 -04:00
|
|
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Controller.dll'
|
2019-02-18 20:17:57 -05:00
|
|
|
artifactName: 'Jellyfin.Controller'
|
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-02-18 20:17:57 -05:00
|
|
|
displayName: 'Publish Artifact Model'
|
2019-03-13 16:09:08 -04:00
|
|
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:02:35 -04:00
|
|
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Model.dll'
|
2019-02-18 20:17:57 -05:00
|
|
|
artifactName: 'Jellyfin.Model'
|
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-02-18 20:17:57 -05:00
|
|
|
displayName: 'Publish Artifact Common'
|
2019-03-13 16:09:08 -04:00
|
|
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:02:35 -04:00
|
|
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Common.dll'
|
2019-02-18 20:17:57 -05:00
|
|
|
artifactName: 'Jellyfin.Common'
|
|
|
|
|
2019-09-18 11:43:02 -04:00
|
|
|
- job: main_test
|
|
|
|
displayName: Main Test
|
|
|
|
pool:
|
|
|
|
vmImage: windows-latest
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
submodules: true
|
|
|
|
persistCredentials: false
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2
|
|
|
|
displayName: Build
|
|
|
|
inputs:
|
|
|
|
command: build
|
|
|
|
publishWebProjects: false
|
|
|
|
projects: '$(TestProjects)'
|
|
|
|
arguments: '--configuration $(BuildConfiguration)'
|
|
|
|
zipAfterPublish: false
|
|
|
|
|
|
|
|
- task: VisualStudioTestPlatformInstaller@1
|
|
|
|
inputs:
|
|
|
|
packageFeedSelector: 'nugetOrg' # Options: nugetOrg, customFeed, netShare
|
|
|
|
versionSelector: 'latestPreRelease' # Required when packageFeedSelector == NugetOrg || PackageFeedSelector == CustomFeed# Options: latestPreRelease, latestStable, specificVersion
|
|
|
|
- task: VSTest@2
|
|
|
|
inputs:
|
|
|
|
testSelector: 'testAssemblies' # Options: testAssemblies, testPlan, testRun
|
|
|
|
testAssemblyVer2: | # Required when testSelector == TestAssemblies
|
2020-01-09 11:31:44 -05:00
|
|
|
**\bin\$(BuildConfiguration)\**\*tests.dll
|
2020-01-09 11:27:48 -05:00
|
|
|
**\bin\$(BuildConfiguration)\**\*test.dll
|
2019-09-18 11:43:02 -04:00
|
|
|
!**\obj\**
|
|
|
|
!**\xunit.runner.visualstudio.testadapter.dll
|
|
|
|
!**\xunit.runner.visualstudio.dotnetcore.testadapter.dll
|
|
|
|
searchFolder: '$(System.DefaultWorkingDirectory)'
|
|
|
|
runInParallel: True # Optional
|
|
|
|
runTestsInIsolation: True # Optional
|
|
|
|
codeCoverageEnabled: True # Optional
|
|
|
|
configuration: 'Debug' # Optional
|
|
|
|
publishRunAttachments: true # Optional
|
2020-01-09 11:27:48 -05:00
|
|
|
testRunTitle: $(Agent.JobName)
|
2020-01-09 11:28:20 -05:00
|
|
|
otherConsoleOptions: '/platform:x64 /Framework:.NETCoreApp,Version=v3.1 /logger:console;verbosity="normal"'
|
2019-09-18 11:43:02 -04:00
|
|
|
|
2019-09-09 17:40:51 -04:00
|
|
|
- job: main_build_win
|
2020-01-05 02:01:42 -05:00
|
|
|
displayName: Publish Windows
|
2019-09-09 17:40:51 -04:00
|
|
|
pool:
|
|
|
|
vmImage: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-01-05 02:01:42 -05:00
|
|
|
Release:
|
2019-09-09 17:40:51 -04:00
|
|
|
BuildConfiguration: Release
|
|
|
|
maxParallel: 2
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
submodules: true
|
2019-09-17 10:23:27 -04:00
|
|
|
persistCredentials: true
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Clone Web Client (Master, Release, or Tag)"
|
2019-11-24 17:01:18 -05:00
|
|
|
condition: and(succeeded(), or(contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master'), contains(variables['Build.SourceBranch'], 'tag')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
2019-09-17 10:40:11 -04:00
|
|
|
inputs:
|
2019-09-29 17:46:09 -04:00
|
|
|
script: 'git clone --single-branch --branch $(Build.SourceBranchName) --depth=1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web'
|
2019-09-17 10:40:11 -04:00
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Clone Web Client (PR)"
|
2019-09-17 10:45:18 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest'))
|
2019-09-17 10:23:27 -04:00
|
|
|
inputs:
|
2019-09-24 10:22:26 -04:00
|
|
|
script: 'git clone --single-branch --branch $(System.PullRequest.TargetBranch) --depth 1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web'
|
|
|
|
|
|
|
|
- task: NodeTool@0
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Install Node'
|
2019-09-24 10:22:26 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
|
|
|
inputs:
|
|
|
|
versionSpec: '10.x'
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: "Build Web Client"
|
2019-09-24 10:22:26 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
|
|
|
inputs:
|
|
|
|
script: yarn install
|
|
|
|
workingDirectory: $(Agent.TempDirectory)/jellyfin-web
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Copy Web Client'
|
2019-09-24 10:38:51 -04:00
|
|
|
condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')) ,eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
|
2019-09-24 10:22:26 -04:00
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Agent.TempDirectory)/jellyfin-web/dist # Optional
|
|
|
|
contents: '**'
|
|
|
|
targetFolder: $(Build.SourcesDirectory)/MediaBrowser.WebDashboard/jellyfin-web
|
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
overWrite: true # Optional
|
|
|
|
flattenFolders: false # Optional
|
2019-09-09 17:40:51 -04:00
|
|
|
|
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Clone UX Repository'
|
2019-09-09 17:40:51 -04:00
|
|
|
inputs:
|
|
|
|
script: git clone --depth=1 https://github.com/jellyfin/jellyfin-ux $(Agent.TempDirectory)\jellyfin-ux
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Build NSIS Installer'
|
2019-09-09 17:40:51 -04:00
|
|
|
inputs:
|
|
|
|
targetType: 'filePath' # Optional. Options: filePath, inline
|
|
|
|
filePath: ./deployment/windows/build-jellyfin.ps1 # Required when targetType == FilePath
|
2019-10-30 18:16:31 -04:00
|
|
|
arguments: -InstallFFMPEG -InstallNSSM -MakeNSIS -InstallTrayApp -UXLocation $(Agent.TempDirectory)\jellyfin-ux -InstallLocation $(build.artifactstagingdirectory)
|
2019-09-09 17:40:51 -04:00
|
|
|
errorActionPreference: 'stop' # Optional. Options: stop, continue, silentlyContinue
|
|
|
|
workingDirectory: $(Build.SourcesDirectory) # Optional
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Copy NSIS Installer'
|
2019-09-09 17:40:51 -04:00
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.SourcesDirectory)/deployment/windows/ # Optional
|
|
|
|
contents: 'jellyfin*.exe'
|
2019-09-24 10:32:57 -04:00
|
|
|
targetFolder: $(System.ArtifactsDirectory)/setup
|
2019-09-09 17:40:51 -04:00
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
overWrite: true # Optional
|
|
|
|
flattenFolders: true # Optional
|
|
|
|
|
|
|
|
- task: PublishPipelineArtifact@0
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Publish Artifact Setup'
|
2019-09-09 17:40:51 -04:00
|
|
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
|
|
|
inputs:
|
|
|
|
targetPath: '$(build.artifactstagingdirectory)/setup'
|
|
|
|
artifactName: 'Jellyfin Server Setup'
|
|
|
|
|
2019-02-18 20:17:57 -05:00
|
|
|
- job: dotnet_compat
|
|
|
|
displayName: Compatibility Check
|
|
|
|
pool:
|
2019-07-05 05:17:48 -04:00
|
|
|
vmImage: ubuntu-latest
|
2019-02-18 20:17:57 -05:00
|
|
|
dependsOn: main_build
|
2020-01-05 02:39:48 -05:00
|
|
|
# only execute for pull requests
|
2020-01-05 13:25:33 -05:00
|
|
|
condition: and(succeeded(), variables['System.PullRequest.PullRequestNumber'])
|
2019-02-18 20:17:57 -05:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Naming:
|
|
|
|
NugetPackageName: Jellyfin.Naming
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: Emby.Naming.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Controller:
|
|
|
|
NugetPackageName: Jellyfin.Controller
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Controller.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Model:
|
|
|
|
NugetPackageName: Jellyfin.Model
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Model.dll
|
2019-02-18 20:17:57 -05:00
|
|
|
Common:
|
|
|
|
NugetPackageName: Jellyfin.Common
|
2019-02-18 20:28:16 -05:00
|
|
|
AssemblyFileName: MediaBrowser.Common.dll
|
2019-02-18 21:16:17 -05:00
|
|
|
maxParallel: 2
|
2019-02-18 20:17:57 -05:00
|
|
|
steps:
|
|
|
|
- checkout: none
|
2020-01-05 13:30:32 -05:00
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Update DotNet'
|
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
|
|
|
version: 3.1.100
|
2019-02-18 20:17:57 -05:00
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: DownloadPipelineArtifact@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Download New Assembly Build Artifact'
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:10:57 -04:00
|
|
|
source: 'current' # Options: current, specific
|
2019-07-05 06:02:35 -04:00
|
|
|
artifact: '$(NugetPackageName)' # Optional
|
2019-07-05 06:10:57 -04:00
|
|
|
path: '$(System.ArtifactsDirectory)/new-artifacts'
|
|
|
|
runVersion: 'latest' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
2019-02-18 20:17:57 -05:00
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Copy New Assembly Build Artifact'
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:10:57 -04:00
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/new-artifacts # Optional
|
2019-02-18 20:17:57 -05:00
|
|
|
contents: '**/*.dll'
|
2019-07-05 06:10:57 -04:00
|
|
|
targetFolder: $(System.ArtifactsDirectory)/new-release
|
2019-02-18 20:17:57 -05:00
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
overWrite: true # Optional
|
2019-07-05 06:10:57 -04:00
|
|
|
flattenFolders: true # Optional
|
2019-02-18 20:17:57 -05:00
|
|
|
|
2019-07-05 06:02:35 -04:00
|
|
|
- task: DownloadPipelineArtifact@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Download Reference Assembly Build Artifact'
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-05 06:10:57 -04:00
|
|
|
source: 'specific' # Options: current, specific
|
2019-07-05 06:02:35 -04:00
|
|
|
artifact: '$(NugetPackageName)' # Optional
|
2019-07-05 06:10:57 -04:00
|
|
|
path: '$(System.ArtifactsDirectory)/current-artifacts'
|
|
|
|
project: '$(System.TeamProjectId)' # Required when source == Specific
|
|
|
|
pipeline: '$(System.DefinitionId)' # Required when source == Specific
|
|
|
|
runVersion: 'latestFromBranch' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
runBranch: 'refs/heads/$(System.PullRequest.TargetBranch)' # Required when source == Specific && runVersion == LatestFromBranch
|
2019-02-18 20:59:56 -05:00
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Copy Reference Assembly Build Artifact'
|
2019-02-18 20:59:56 -05:00
|
|
|
inputs:
|
2019-07-05 06:10:57 -04:00
|
|
|
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
2019-02-18 20:59:56 -05:00
|
|
|
contents: '**/*.dll'
|
2019-07-05 06:10:57 -04:00
|
|
|
targetFolder: $(System.ArtifactsDirectory)/current-release
|
2019-02-18 20:59:56 -05:00
|
|
|
cleanTargetFolder: true # Optional
|
|
|
|
overWrite: true # Optional
|
|
|
|
flattenFolders: true # Optional
|
2019-02-18 20:17:57 -05:00
|
|
|
|
2019-03-07 16:00:28 -05:00
|
|
|
- task: DownloadGitHubRelease@0
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Download ABI Compatibility Check Tool'
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-07-06 18:20:37 -04:00
|
|
|
connection: Jellyfin Release Download
|
2019-02-18 20:17:57 -05:00
|
|
|
userRepository: EraYaN/dotnet-compatibility
|
|
|
|
defaultVersionType: 'latest' # Options: latest, specificVersion, specificTag
|
|
|
|
itemPattern: '**-ci.zip' # Optional
|
|
|
|
downloadPath: '$(System.ArtifactsDirectory)'
|
|
|
|
|
|
|
|
- task: ExtractFiles@1
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Extract ABI Compatibility Check Tool'
|
2019-02-18 20:17:57 -05:00
|
|
|
inputs:
|
2019-02-18 21:07:44 -05:00
|
|
|
archiveFilePatterns: '$(System.ArtifactsDirectory)/*-ci.zip'
|
2019-02-18 20:28:16 -05:00
|
|
|
destinationFolder: $(System.ArtifactsDirectory)/tools
|
2019-02-18 20:17:57 -05:00
|
|
|
cleanDestinationFolder: true
|
|
|
|
|
2020-01-05 13:24:24 -05:00
|
|
|
# The `--warnings-only` switch will swallow the return code and not emit any errors.
|
2019-02-18 20:28:16 -05:00
|
|
|
- task: CmdLine@2
|
2020-01-05 02:32:24 -05:00
|
|
|
displayName: 'Execute ABI Compatibility Check Tool'
|
2019-02-18 20:28:16 -05:00
|
|
|
inputs:
|
2020-01-05 13:24:24 -05:00
|
|
|
script: 'dotnet tools/CompatibilityCheckerCLI.dll current-release/$(AssemblyFileName) new-release/$(AssemblyFileName) --azure-pipelines --warnings-only'
|
2020-01-05 02:32:24 -05:00
|
|
|
workingDirectory: $(System.ArtifactsDirectory) # Optional
|