Skip to content

Commit

Permalink
Promote hack not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed Jun 18, 2020
1 parent d04030b commit 5ed3cdc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,5 @@ stages:
copyApiUrl = f"$(ARTIFACTORY_URL)/api/copy/sonarsource-public-builds/org/sonarsource/sonarlint/eclipse/org.sonarlint.eclipse.site/{version}/org.sonarlint.eclipse.site-{version}.zip?to=/sonarlint-eclipse-dogfood/org.sonarlint.eclipse.site-dogfood.zip"
response = requests.post(url=copyApiUrl, auth=('$(ARTIFACTORY_API_USER)', '$(ARTIFACTORY_API_KEY)'))
if not response.status_code == 200:
if not response.ok:
sys.exit('[!] [{0}] Server Error: {1}'.format(response.status_code, response.text))
# Hack for https://stackoverflow.com/questions/62345615/artifactory-cloud-how-to-copy-an-artifact-without-messing-up-the-repo-path-in
copyApiUrl2 = f"$(ARTIFACTORY_URL)/api/copy/sonarlint-eclipse-dogfood/org.sonarlint.eclipse.site-dogfood.zip?to=/sonarsource-public-builds/org/sonarsource/sonarlint/eclipse/org.sonarlint.eclipse.site/{version}/org.sonarlint.eclipse.site-{version}.zip"
response2 = requests.post(url=copyApiUrl2, auth=('$(ARTIFACTORY_API_USER)', '$(ARTIFACTORY_API_KEY)'))
if not response2.status_code == 200:
sys.exit('[!] [{0}] Server Error: {1}'.format(response2.status_code, response2.text))

0 comments on commit 5ed3cdc

Please sign in to comment.