2020-08-22 02:42:48 +00:00
|
|
|
parameters:
|
|
|
|
python_version : []
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- ${{ each py_version in parameters.py_versions }}:
|
|
|
|
- task: CopyFilesOverSSH@0
|
|
|
|
displayName: 'Upload to repo server'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: repository
|
|
|
|
sourceFolder: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
contents: 'plugin.video.jellyfin-${{ py_version }}.zip'
|
|
|
|
targetFolder: '/srv/repository/incoming/kodi'
|
|
|
|
|
|
|
|
- task: SSH@0
|
|
|
|
displayName: 'Add to Kodi repo'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: repository
|
|
|
|
runOptions: 'commands'
|
2020-08-25 02:48:41 +00:00
|
|
|
commands: 'python3 /usr/local/bin/kodirepo add /srv/repository/incoming/kodi/plugin.video.jellyfin-${{ py_version }}.zip --datadir /srv/repository/releases/client/kodi/${{ py_version }}'
|
2020-09-13 02:43:33 +00:00
|
|
|
failOnStdErr: false
|
2020-09-13 00:03:23 +00:00
|
|
|
|
|
|
|
- task: SSH@0
|
|
|
|
displayName: 'Clean up zip files'
|
|
|
|
inputs:
|
|
|
|
sshEndpoint: repository
|
|
|
|
runOptions: 'commands'
|
|
|
|
commands: 'rm /srv/repository/incoming/kodi/plugin.video.jellyfin-${{ py_version }}.zip'
|