|
|
|
|
|
|
|
|
eq(variables['Build.SourceBranch'], 'refs/heads/develop'), |
|
|
eq(variables['Build.SourceBranch'], 'refs/heads/develop'), |
|
|
eq(variables['Build.SourceBranch'], 'refs/heads/master') |
|
|
eq(variables['Build.SourceBranch'], 'refs/heads/master') |
|
|
) }} |
|
|
) }} |
|
|
deployDest: ${{ format('~/{0}/', variables['Build.SourceBranchName']) }} |
|
|
|
|
|
|
|
|
deployDest: ${{ format('~/web/{0}/', variables['Build.SourceBranchName']) }} |
|
|
|
|
|
|
|
|
stages: |
|
|
stages: |
|
|
- stage: build_test |
|
|
- stage: build_test |
|
|
|
|
|
|
|
|
- task: DownloadPipelineArtifact@2 |
|
|
- task: DownloadPipelineArtifact@2 |
|
|
displayName: Download builds |
|
|
displayName: Download builds |
|
|
inputs: |
|
|
inputs: |
|
|
targetPath: art/ |
|
|
|
|
|
|
|
|
targetPath: art-dirs/ |
|
|
|
|
|
- bash: | |
|
|
|
|
|
set -eu |
|
|
|
|
|
mkdir -p art/ |
|
|
|
|
|
mv -- $(find art-dirs/ -type f) art/ |
|
|
|
|
|
displayName: Rearrange |
|
|
- task: CopyFilesOverSSH@0 |
|
|
- task: CopyFilesOverSSH@0 |
|
|
displayName: Post builds |
|
|
displayName: Post builds |
|
|
inputs: |
|
|
inputs: |