Migrate dev builds artifacts from Bintray to Artifactory

First attempt
This commit is contained in:
Luis Ángel San Martín 2021-04-26 22:49:50 +02:00
parent 020ff5f6b5
commit e71e97f2fe

View File

@ -129,7 +129,7 @@ jobs:
- Windows_x64 - Windows_x64
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'), true) condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/develop'), true)
variables: variables:
- group: bintray - group: artifactory
pool: pool:
vmImage: 'ubuntu-16.04' vmImage: 'ubuntu-16.04'
steps: steps:
@ -144,10 +144,9 @@ jobs:
files: '$(Build.SourcesDirectory)/dev_bin/**/*.*' files: '$(Build.SourcesDirectory)/dev_bin/**/*.*'
authType: 'userAndPass' authType: 'userAndPass'
username: $(username) username: $(username)
password: $(api-key) password: $(pass)
options: -H "X-Bintray-Publish:1"
remotePath: '' remotePath: ''
url: https://api.bintray.com/content/luisangelsm/YACReader/DevBuilds/$(Build.BuildNumber)/ url: https://yacreader.jfrog.io/artifactory/yacreader/$(Build.BuildNumber)/
- ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}: - ${{ if and(eq(variables['System.TeamFoundationCollectionUri'], 'https://dev.azure.com/luisangelsm/'), or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.SourceBranch'], 'refs/heads/develop'))) }}:
- job: Release - job: Release