Merge pull request #1111 from EraYaN/azp-hardcoded-try
Azure Pipelines DownloadBuildArtifacts@0 Experiment
This commit is contained in:
commit
ba551b48e1
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- job: main_build
|
- job: main_build
|
||||||
displayName: Main Build
|
displayName: Main Build
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
release:
|
release:
|
||||||
|
@ -35,12 +35,14 @@ jobs:
|
||||||
inputs:
|
inputs:
|
||||||
command: restore
|
command: restore
|
||||||
projects: '$(RestoreBuildProjects)'
|
projects: '$(RestoreBuildProjects)'
|
||||||
|
enabled: false
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: Build
|
displayName: Build
|
||||||
inputs:
|
inputs:
|
||||||
projects: '$(RestoreBuildProjects)'
|
projects: '$(RestoreBuildProjects)'
|
||||||
arguments: '--configuration $(BuildConfiguration)'
|
arguments: '--configuration $(BuildConfiguration)'
|
||||||
|
enabled: false
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: Test
|
displayName: Test
|
||||||
|
@ -66,40 +68,40 @@ jobs:
|
||||||
# artifactName: 'jellyfin-build-$(BuildConfiguration)'
|
# artifactName: 'jellyfin-build-$(BuildConfiguration)'
|
||||||
# zipAfterPublish: true
|
# zipAfterPublish: true
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishPipelineArtifact@0
|
||||||
displayName: 'Publish Artifact Naming'
|
displayName: 'Publish Artifact Naming'
|
||||||
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/Emby.Naming.dll'
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/Emby.Naming.dll'
|
||||||
artifactName: 'Jellyfin.Naming'
|
artifactName: 'Jellyfin.Naming'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishPipelineArtifact@0
|
||||||
displayName: 'Publish Artifact Controller'
|
displayName: 'Publish Artifact Controller'
|
||||||
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Controller.dll'
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Controller.dll'
|
||||||
artifactName: 'Jellyfin.Controller'
|
artifactName: 'Jellyfin.Controller'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishPipelineArtifact@0
|
||||||
displayName: 'Publish Artifact Model'
|
displayName: 'Publish Artifact Model'
|
||||||
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Model.dll'
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Model.dll'
|
||||||
artifactName: 'Jellyfin.Model'
|
artifactName: 'Jellyfin.Model'
|
||||||
|
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishPipelineArtifact@0
|
||||||
displayName: 'Publish Artifact Common'
|
displayName: 'Publish Artifact Common'
|
||||||
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
condition: and(eq(variables['BuildConfiguration'], 'Release'), succeeded())
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Common.dll'
|
targetPath: '$(build.artifactstagingdirectory)/Jellyfin.Server/MediaBrowser.Common.dll'
|
||||||
artifactName: 'Jellyfin.Common'
|
artifactName: 'Jellyfin.Common'
|
||||||
|
|
||||||
- job: dotnet_compat
|
- job: dotnet_compat
|
||||||
displayName: Compatibility Check
|
displayName: Compatibility Check
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-latest
|
||||||
dependsOn: main_build
|
dependsOn: main_build
|
||||||
condition: false #and(succeeded(), variables['System.PullRequest.PullRequestNumber']) # Only execute if the pullrequest numer is defined. (So not for normal CI builds)
|
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:
|
||||||
|
@ -118,45 +120,23 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- checkout: none
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
- task: DownloadPipelineArtifact@2
|
||||||
displayName: Download the Reference Assembly Build Artifact
|
|
||||||
inputs:
|
|
||||||
buildType: 'specific' # Options: current, specific
|
|
||||||
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
|
|
||||||
displayName: Copy Nuget Assembly to current-release folder
|
|
||||||
inputs:
|
|
||||||
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
|
||||||
contents: '**/*.dll'
|
|
||||||
targetFolder: $(System.ArtifactsDirectory)/current-release
|
|
||||||
cleanTargetFolder: true # Optional
|
|
||||||
overWrite: true # Optional
|
|
||||||
flattenFolders: true # Optional
|
|
||||||
|
|
||||||
- task: DownloadBuildArtifacts@0
|
|
||||||
displayName: Download the New Assembly Build Artifact
|
displayName: Download the New Assembly Build Artifact
|
||||||
inputs:
|
inputs:
|
||||||
buildType: 'current' # Options: current, specific
|
source: 'current' # Options: current, specific
|
||||||
allowPartiallySucceededBuilds: false # Optional
|
#preferTriggeringPipeline: false # Optional
|
||||||
downloadType: 'single' # Options: single, specific
|
#tags: # Optional
|
||||||
artifactName: '$(NugetPackageName)' # Required when downloadType == Single
|
artifact: '$(NugetPackageName)' # Optional
|
||||||
downloadPath: '$(System.ArtifactsDirectory)/new-artifacts'
|
#patterns: '**' # Optional
|
||||||
|
path: '$(System.ArtifactsDirectory)/new-artifacts'
|
||||||
|
#project: # Required when source == Specific
|
||||||
|
#pipeline: # Required when source == Specific
|
||||||
|
runVersion: 'latest' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
||||||
|
#runBranch: 'refs/heads/master' # Required when source == Specific && runVersion == LatestFromBranch
|
||||||
|
#runId: # Required when source == Specific && runVersion == Specific
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Copy Artifact Assembly to new-release folder
|
displayName: Copy New Assembly to new-release folder
|
||||||
inputs:
|
inputs:
|
||||||
sourceFolder: $(System.ArtifactsDirectory)/new-artifacts # Optional
|
sourceFolder: $(System.ArtifactsDirectory)/new-artifacts # Optional
|
||||||
contents: '**/*.dll'
|
contents: '**/*.dll'
|
||||||
|
@ -165,6 +145,31 @@ jobs:
|
||||||
overWrite: true # Optional
|
overWrite: true # Optional
|
||||||
flattenFolders: true # Optional
|
flattenFolders: true # Optional
|
||||||
|
|
||||||
|
- task: DownloadPipelineArtifact@2
|
||||||
|
displayName: Download the Reference Assembly Build Artifact
|
||||||
|
inputs:
|
||||||
|
source: 'specific' # Options: current, specific
|
||||||
|
#preferTriggeringPipeline: false # Optional
|
||||||
|
#tags: # Optional
|
||||||
|
artifact: '$(NugetPackageName)' # Optional
|
||||||
|
#patterns: '**' # Optional
|
||||||
|
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
|
||||||
|
#runId: # Required when source == Specific && runVersion == Specific
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: Copy Reference Assembly to current-release folder
|
||||||
|
inputs:
|
||||||
|
sourceFolder: $(System.ArtifactsDirectory)/current-artifacts # Optional
|
||||||
|
contents: '**/*.dll'
|
||||||
|
targetFolder: $(System.ArtifactsDirectory)/current-release
|
||||||
|
cleanTargetFolder: true # Optional
|
||||||
|
overWrite: true # Optional
|
||||||
|
flattenFolders: true # Optional
|
||||||
|
|
||||||
- task: DownloadGitHubRelease@0
|
- task: DownloadGitHubRelease@0
|
||||||
displayName: Download ABI compatibility check tool from GitHub
|
displayName: Download ABI compatibility check tool from GitHub
|
||||||
inputs:
|
inputs:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user