You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.7 KiB
47 lines
1.7 KiB
name: Nightly-$(date:yyyyMMdd).$(rev:r)
|
|
|
|
variables:
|
|
- name: Version
|
|
value: '1.0.0'
|
|
|
|
trigger: none
|
|
pr: none
|
|
|
|
jobs:
|
|
- job: publish_artifacts_nightly
|
|
displayName: Publish Artifacts Nightly
|
|
pool:
|
|
vmImage: ubuntu-latest
|
|
steps:
|
|
- checkout: none
|
|
- 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: 'latestFromBranch' # Required when source == Specific. Options: latest, latestFromBranch, specific
|
|
runBranch: 'refs/heads/master' # Required when source == Specific && runVersion == LatestFromBranch
|
|
|
|
- task: SSH@0
|
|
displayName: 'Create Drop directory'
|
|
inputs:
|
|
sshEndpoint: 'Jellyfin Build Server'
|
|
commands: 'mkdir -p /srv/incoming/jellyfin_$(Version)/win-installer && ln -s /srv/incoming/jellyfin_$(Version) /srv/incoming/jellyfin_nightly_azure_upload'
|
|
|
|
- task: CopyFilesOverSSH@0
|
|
displayName: 'Copy the Windows Setup to the Repo'
|
|
inputs:
|
|
sshEndpoint: 'Jellyfin Build Server'
|
|
sourceFolder: '$(System.ArtifactsDirectory)/win-installer'
|
|
contents: 'jellyfin_*.exe'
|
|
targetFolder: '/srv/incoming/jellyfin_nightly_azure_upload/win-installer'
|
|
|
|
- task: SSH@0
|
|
displayName: 'Clean up SCP symlink'
|
|
inputs:
|
|
sshEndpoint: 'Jellyfin Build Server'
|
|
commands: 'rm -f /srv/incoming/jellyfin_nightly_azure_upload'
|