added 2nd S3 write for new bucket
@@ -131,4 +131,18 @@ stages:
${{ if ne(variables['Build.SourceBranchName'], 'master') }}:
targetFolder: ${{ format('dl/scope/branch/{0}/', variables['Build.SourceBranchName']) }}
filesAcl: 'public-read'
+ - task: S3Upload@1
+ displayName: New_S3_Upload
+ condition: succeeded()
+ inputs:
+ awsCredentials: 'azure-pipeline-aws'
+ regionName: 'us-west-2'
+ bucketName: 'io.cribl.cdn'
+ sourceFolder: '$(Build.BinariesDirectory)/lib/'
+ globExpressions: '**/*.so'
+ ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
+ targetFolder: 'dl/scope/latest/'
+ ${{ if ne(variables['Build.SourceBranchName'], 'master') }}:
+ targetFolder: ${{ format('dl/scope/branch/{0}/', variables['Build.SourceBranchName']) }}
+ filesAcl: 'public-read'
