mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-31 04:05:50 -04:00
Do not use the nuget packages for comparison, but the last master build (#1091)
* Do not use the nuget packages for comparison, but the last master build. * Only allow passing builds.
This commit is contained in:
parent
6507a9b2ee
commit
1d443d2ff5
@ -11,9 +11,6 @@ pr:
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
batch: true
|
batch: true
|
||||||
branches:
|
|
||||||
include:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: main_build
|
- job: main_build
|
||||||
@ -71,28 +68,28 @@ jobs:
|
|||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact Naming'
|
displayName: 'Publish Artifact Naming'
|
||||||
condition: eq(variables['BuildConfiguration'], 'Release')
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/Emby.Naming.dll'
|
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/Emby.Naming.dll'
|
||||||
artifactName: 'Jellyfin.Naming'
|
artifactName: 'Jellyfin.Naming'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact Controller'
|
displayName: 'Publish Artifact Controller'
|
||||||
condition: eq(variables['BuildConfiguration'], 'Release')
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Controller.dll'
|
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Controller.dll'
|
||||||
artifactName: 'Jellyfin.Controller'
|
artifactName: 'Jellyfin.Controller'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact Model'
|
displayName: 'Publish Artifact Model'
|
||||||
condition: eq(variables['BuildConfiguration'], 'Release')
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Model.dll'
|
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Model.dll'
|
||||||
artifactName: 'Jellyfin.Model'
|
artifactName: 'Jellyfin.Model'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact Common'
|
displayName: 'Publish Artifact Common'
|
||||||
condition: eq(variables['BuildConfiguration'], 'Release')
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Common.dll'
|
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Common.dll'
|
||||||
artifactName: 'Jellyfin.Common'
|
artifactName: 'Jellyfin.Common'
|
||||||
@ -102,7 +99,7 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
dependsOn: main_build
|
dependsOn: main_build
|
||||||
condition: succeeded()
|
condition: and(succeeded(), variables['System.PullRequest.PullRequestNumber']) # Only execute if the pullrequest numer is defined. (So not for normal CI builds)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Naming:
|
Naming:
|
||||||
@ -121,16 +118,28 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: none
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: 'Download $(NugetPackageName)'
|
displayName: Download the Reference Assembly Build Artifact
|
||||||
inputs:
|
inputs:
|
||||||
command: custom
|
buildType: 'specific' # Options: current, specific
|
||||||
arguments: 'install $(NugetPackageName) -OutputDirectory $(System.ArtifactsDirectory)/packages -ExcludeVersion -DirectDownload'
|
project: $(System.TeamProjectId) # Required when buildType == Specific
|
||||||
|
pipeline: $(System.DefinitionId) # Required when buildType == Specific, not sure if this will take a name too
|
||||||
|
#specificBuildWithTriggering: false # Optional
|
||||||
|
buildVersionToDownload: 'latestFromBranch' # Required when buildType == Specific# Options: latest, latestFromBranch, specific
|
||||||
|
allowPartiallySucceededBuilds: false # Optional
|
||||||
|
branchName: '$(System.PullRequest.TargetBranch)' # Required when buildType == Specific && BuildVersionToDownload == LatestFromBranch
|
||||||
|
#buildId: # Required when buildType == Specific && BuildVersionToDownload == Specific
|
||||||
|
#tags: # Optional
|
||||||
|
downloadType: 'single' # Options: single, specific
|
||||||
|
artifactName: '$(NugetPackageName)'# Required when downloadType == Single
|
||||||
|
#itemPattern: '**' # Optional
|
||||||
|
downloadPath: '$(System.ArtifactsDirectory)/current-artifacts'
|
||||||
|
#parallelizationLimit: '8' # Optional
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Copy Nuget Assembly to current-release folder
|
displayName: Copy Nuget Assembly to current-release folder
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: $(System.ArtifactsDirectory)/packages/$(NugetPackageName) # Optional
|
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
||||||
contents: '**/*.dll'
|
contents: '**/*.dll'
|
||||||
targetFolder: $(System.ArtifactsDirectory)/current-release
|
targetFolder: $(System.ArtifactsDirectory)/current-release
|
||||||
cleanTargetFolder: true # Optional
|
cleanTargetFolder: true # Optional
|
||||||
@ -138,7 +147,7 @@ jobs:
|
|||||||
flattenFolders: true # Optional
|
flattenFolders: true # Optional
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadBuildArtifacts@0
|
||||||
displayName: Download the Assembly Build Artifact
|
displayName: Download the New Assembly Build Artifact
|
||||||
inputs:
|
inputs:
|
||||||
buildType: 'current' # Options: current, specific
|
buildType: 'current' # Options: current, specific
|
||||||
allowPartiallySucceededBuilds: false # Optional
|
allowPartiallySucceededBuilds: false # Optional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user