2019-09-16 23:23:52 +00:00
|
|
|
name: Release-$(Version)-$(date:yyyyMMdd).$(rev:r)
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: Version
|
|
|
|
value: '1.0.0'
|
|
|
|
- name: UsedRunId
|
|
|
|
value: 0
|
|
|
|
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: publish_artifacts_release
|
|
|
|
displayName: Publish Artifacts Release
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-latest
|
|
|
|
steps:
|
2019-09-16 23:37:42 +00:00
|
|
|
- checkout: none
|
2019-09-16 23:23:52 +00:00
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
displayName: Download the Windows Setup Artifact
|
|
|
|
inputs:
|
|
|
|
source: 'specific' # Options: current, specific
|
|
|
|
artifact: 'Jellyfin Server Setup' # Optional
|
|
|
|
path: '$(System.ArtifactsDirectory)/win-installer'
|
|
|
|
project: '$(System.TeamProjectId)' # Required when source == Specific
|
|
|
|
pipelineId: 1 # Required when source == Specific
|
|
|
|
runVersion: 'specific' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
|
|
runId: $(UsedRunId)
|
|
|
|
|
|
|
|
- task: SSH@0
|
|
|
|
displayName: 'Create Drop directory'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: 'Jellyfin Build Server'
|
2019-09-16 23:41:14 +00:00
|
|
|
commands: 'mkdir -p /srv/incoming/jellyfin_$(Version)/win-installer && ln -s /srv/incoming/jellyfin_$(Version) /srv/incoming/jellyfin_release_azure_upload'
|
2019-09-16 23:23:52 +00:00
|
|
|
|
|
|
|
- task: CopyFilesOverSSH@0
|
|
|
|
displayName: 'Copy the Windows Setup to the Repo'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: 'Jellyfin Build Server'
|
|
|
|
sourceFolder: '$(System.ArtifactsDirectory)/win-installer'
|
|
|
|
contents: 'jellyfin_*.exe'
|
2019-09-16 23:41:14 +00:00
|
|
|
targetFolder: '/srv/incoming/jellyfin_release_azure_upload/win-installer'
|
2019-09-16 23:23:52 +00:00
|
|
|
|
|
|
|
- task: SSH@0
|
|
|
|
displayName: 'Clean up SCP symlink'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: 'Jellyfin Build Server'
|
2019-09-16 23:41:14 +00:00
|
|
|
commands: 'rm -f /srv/incoming/jellyfin_release_azure_upload'
|