Skip to content

Commit

Permalink
Declare JELLYFIN_VERSION top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Nov 4, 2020
1 parent 85c8cca commit 4b685c7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
variables:
- group: 'jellyfin'
group: 'jellyfin'
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
- name: JELLYFIN_VERSION
value: replace(variables['Build.SourceBranch'], 'refs/tags/', '')

trigger:
batch: true
Expand All @@ -23,11 +26,6 @@ jobs:
pool:
vmImage: 'ubuntu-latest'

variables:
- name: JELLYFIN_VERSION
value: replace(variables['Build.SourceBranch'], 'refs/tags/', '')
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/v')

steps:
- task: Gradle@2
displayName: 'Run Tests'
Expand Down Expand Up @@ -93,9 +91,6 @@ jobs:
pool:
vmImage: 'ubuntu-latest'

variables:
JELLYFIN_VERSION: replace(variables['Build.SourceBranch'], 'refs/tags/', '')

steps:
- task: DownloadPipelineArtifact@2
displayName: 'Download APKs'
Expand Down

0 comments on commit 4b685c7

Please sign in to comment.