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.

28 lines
756B

  1. parameters:
  2. - name: branch
  3. type: string
  4. displayName: Branch
  5. - name: targetPath
  6. type: string
  7. displayName: Target Path
  8. jobs:
  9. - ${{ if eq(variables.build.SourceBranchName, parameters.branch) }}:
  10. - job: deploy_${{ parameters.branch }}
  11. displayName: Deploy for ${{parameters.branch}}
  12. condition: succeeded()
  13. steps:
  14. - task: DownloadPipelineArtifact@2
  15. displayName: Download builds
  16. inputs:
  17. targetPath: art/
  18. - task: CopyFilesOverSSH@0
  19. displayName: Post builds
  20. inputs:
  21. sshEndpoint: dds.pizza
  22. sourceFolder: art/
  23. targetFolder: ${{ parameters.targetPath }}
  24. failOnEmptySource: true
  25. overwrite: true