Merge pull request #363 from mcarlton00/i-want-my-files

Publish artifacts in pipeline
This commit is contained in:
Odd Stråbø 2020-08-13 18:01:40 +02:00 committed by GitHub
commit 8ab50c767e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,13 +23,19 @@ steps:
includeRootFolder: False includeRootFolder: False
archiveType: 'zip' archiveType: 'zip'
tarCompression: 'none' tarCompression: 'none'
archiveFile: 'plugin.video.jellyfin-${{ py_version }}.zip' archiveFile: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin-${{ py_version }}.zip'
- task: PublishPipelineArtifact@1
displayName: 'Publish ${{ py_version }} artifact'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/plugin.video.jellyfin-${{ py_version }}.zip'
artifactName: 'plugin.video.jellyfin-${{ py_version }}-$(Build.BuildNumber).zip'
- task: CopyFilesOverSSH@0 - task: CopyFilesOverSSH@0
displayName: 'Upload to repo server' displayName: 'Upload to repo server'
inputs: inputs:
sshEndpoint: repository sshEndpoint: repository
sourceFolder: '${Agent.BuildDirectory}' sourceFolder: '$(Build.ArtifactStagingDirectory)'
contents: 'plugin.video.jellyfin-${{ py_version }}.zip' contents: 'plugin.video.jellyfin-${{ py_version }}.zip'
targetFolder: '/srv/repository/incoming/kodi' targetFolder: '/srv/repository/incoming/kodi'
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')