publish-nightly.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: Nightly-$(date:yyyyMMdd).$(rev:r)
  2. variables:
  3. - name: Version
  4. value: '1.0.0'
  5. trigger: none
  6. pr: none
  7. jobs:
  8. - job: publish_artifacts_nightly
  9. displayName: Publish Artifacts Nightly
  10. pool:
  11. vmImage: ubuntu-latest
  12. steps:
  13. - checkout: none
  14. - task: DownloadPipelineArtifact@2
  15. displayName: Download the Windows Setup Artifact
  16. inputs:
  17. source: 'specific' # Options: current, specific
  18. artifact: 'Jellyfin Server Setup' # Optional
  19. path: '$(System.ArtifactsDirectory)/win-installer'
  20. project: '$(System.TeamProjectId)' # Required when source == Specific
  21. pipelineId: 1 # Required when source == Specific
  22. runVersion: 'latestFromBranch' # Required when source == Specific. Options: latest, latestFromBranch, specific
  23. runBranch: 'refs/heads/master' # Required when source == Specific && runVersion == LatestFromBranch
  24. - task: SSH@0
  25. displayName: 'Create Drop directory'
  26. inputs:
  27. sshEndpoint: 'Jellyfin Build Server'
  28. commands: 'mkdir -p /srv/incoming/jellyfin_$(Version)/win-installer && ln -s /srv/incoming/jellyfin_$(Version) /srv/incoming/jellyfin_nightly_azure_upload'
  29. - task: CopyFilesOverSSH@0
  30. displayName: 'Copy the Windows Setup to the Repo'
  31. inputs:
  32. sshEndpoint: 'Jellyfin Build Server'
  33. sourceFolder: '$(System.ArtifactsDirectory)/win-installer'
  34. contents: 'jellyfin_*.exe'
  35. targetFolder: '/srv/incoming/jellyfin_nightly_azure_upload/win-installer'
  36. - task: SSH@0
  37. displayName: 'Clean up SCP symlink'
  38. inputs:
  39. sshEndpoint: 'Jellyfin Build Server'
  40. commands: 'rm -f /srv/incoming/jellyfin_nightly_azure_upload'