|
|
@ -20,41 +20,33 @@ jobs:
|
|
|
|
submodules: true
|
|
|
|
submodules: true
|
|
|
|
persistCredentials: true
|
|
|
|
persistCredentials: true
|
|
|
|
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
displayName: "Clone Web Branch"
|
|
|
|
displayName: "Download Web Branch"
|
|
|
|
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'))
|
|
|
|
condition: in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'BuildCompletion')
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
script: "git clone --single-branch --branch $(Build.SourceBranchName) --depth=1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web"
|
|
|
|
path: '$(Agent.TempDirectory)'
|
|
|
|
|
|
|
|
artifact: 'jellyfin-web-production'
|
|
|
|
|
|
|
|
source: 'specific'
|
|
|
|
|
|
|
|
project: 'Jellyfin Web'
|
|
|
|
|
|
|
|
pipeline: 'Build'
|
|
|
|
|
|
|
|
runBranch: variables['Build.SourceBranch']
|
|
|
|
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
displayName: "Clone Web Target"
|
|
|
|
displayName: "Download Web Target"
|
|
|
|
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'))
|
|
|
|
condition: in(variables['Build.Reason'], 'PullRequest')
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
script: "git clone --single-branch --branch $(System.PullRequest.TargetBranch) --depth 1 https://github.com/jellyfin/jellyfin-web.git $(Agent.TempDirectory)/jellyfin-web"
|
|
|
|
path: '$(Agent.TempDirectory)'
|
|
|
|
|
|
|
|
artifact: 'jellyfin-web-production'
|
|
|
|
|
|
|
|
source: 'specific'
|
|
|
|
|
|
|
|
project: 'Jellyfin Web'
|
|
|
|
|
|
|
|
pipeline: 'Build'
|
|
|
|
|
|
|
|
runBranch: variables['System.PullRequest.TargetBranch']
|
|
|
|
|
|
|
|
|
|
|
|
- task: NodeTool@0
|
|
|
|
- task: ExtractFiles@1
|
|
|
|
displayName: "Install Node"
|
|
|
|
displayName: "Extract Web Client"
|
|
|
|
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:
|
|
|
|
inputs:
|
|
|
|
versionSpec: "12.x"
|
|
|
|
archiveFilePatterns: '$(Agent.TempDirectory)/*.zip'
|
|
|
|
|
|
|
|
destinationFolder: '$(Build.SourcesDirectory)/MediaBrowser.WebDashboard'
|
|
|
|
- task: CmdLine@2
|
|
|
|
|
|
|
|
displayName: "Build Web Client"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
displayName: "Copy Web Client"
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
sourceFolder: $(Agent.TempDirectory)/jellyfin-web/dist
|
|
|
|
|
|
|
|
contents: "**"
|
|
|
|
|
|
|
|
targetFolder: $(Build.SourcesDirectory)/MediaBrowser.WebDashboard/jellyfin-web
|
|
|
|
|
|
|
|
cleanTargetFolder: true
|
|
|
|
|
|
|
|
overWrite: true
|
|
|
|
|
|
|
|
flattenFolders: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- task: UseDotNet@2
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: "Update DotNet"
|
|
|
|
displayName: "Update DotNet"
|
|
|
|