Skip to content

Commit

Permalink
Publish artifact only on Release not on Perf (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
olgavrou authored Mar 4, 2020
1 parent e519fdd commit b4d16e1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .azure-pipelines-templates/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ jobs:
- ${{ if and(ne(parameters.consensus, 'BFT'), or(eq(parameters.suffix, 'Release'), eq(parameters.suffix, 'Perf'))) }}:
- template: install.yml
parameters:
install_prefix: ${{ parameters.install_prefix }}
install_prefix: ${{ parameters.install_prefix }}
suffix: ${{ parameters.suffix }}
27 changes: 14 additions & 13 deletions .azure-pipelines-templates/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@ steps:
-v
displayName: Test installed CCF

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: ${{ parameters.install_prefix }}
archiveType: 'tar'
tarCompression: 'gz'
archiveFile: '$(Build.ArtifactStagingDirectory)/ccf${{ parameters.install_suffix }}.tar.gz'
verbose: true
displayName: 'Create Install Tarball'
- ${{ if eq(parameters.suffix, 'Release') }}:
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: ${{ parameters.install_prefix }}
archiveType: 'tar'
tarCompression: 'gz'
archiveFile: '$(Build.ArtifactStagingDirectory)/ccf.tar.gz'
verbose: true
displayName: 'Create Install Tarball'

- task: PublishPipelineArtifact@1
inputs:
path: $(Build.ArtifactStagingDirectory)/ccf${{ parameters.install_suffix }}.tar.gz
artifact: ccf${{ parameters.install_suffix }}.tar.gz
displayName: 'Publish CCF Install'
- task: PublishPipelineArtifact@1
inputs:
path: $(Build.ArtifactStagingDirectory)/ccf.tar.gz
artifact: ccf.tar.gz
displayName: 'Publish CCF Install'
2 changes: 1 addition & 1 deletion .azure-pipelines-templates/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'
assets: $(Build.ArtifactStagingDirectory)/**/ccf*.tar.gz
assets: $(Build.ArtifactStagingDirectory)/**/ccf.tar.gz
assetUploadMode: 'delete'
isDraft: true
isPreRelease: true
Expand Down

0 comments on commit b4d16e1

Please sign in to comment.