Skip to content

Commit

Permalink
feat(BUILD-3017): switch to jfrog access tokens (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
malena-ebert-sonarsource authored Sep 6, 2023
1 parent b339349 commit 2269914
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ pool:
variables:
- group: sonarsource-build-variables
- group: sonar-scanner-dotnet-variables
- group: artifactory_access
# ARTIFACTORY_URL https://repox.jfrog.io/repox => https://repox.jfrog.io/artifactory
# JFROG_URL https://repox.jfrog.io
# https://github.com/SonarSource/parent-oss/blob/master/pom.xml#L708-L711
- name: ARTIFACTORY_DEPLOY_USERNAME
value: $[variables.ARTIFACTORY_QA_DEPLOYER_USERNAME]
# ~https://github.com/SonarSource/re-ci-images/blob/master/docker/mvn/settings-private.xml
- name: ARTIFACTORY_PRIVATE_USERNAME
value: $[variables.ARTIFACTORY_PRIVATE_READER_USERNAME]
- name: ARTIFACTORY_QA_READER_USERNAME
value: $[variables.ARTIFACTORY_PRIVATE_READER_USERNAME]
# pipelines-yaml-templates/promote-stage.yml line 56
- name: ARTIFACTORY_API_USER
value: $[variables.ARTIFACTORY_PROMOTER_USERNAME]
- name: ARTIFACTORY_API_KEY
value: $[variables.ARTIFACTORY_PROMOTER_ACCESS_TOKEN]

resources:
repositories:
Expand Down Expand Up @@ -364,8 +380,7 @@ stages:
env:
PROJECT_VERSION: $(SONAR_PROJECT_VERSION)
BUILD_ID: $(Build.BuildId)
ARTIFACTORY_DEPLOY_USERNAME: $(ARTIFACTORY_DEPLOY_USERNAME)
ARTIFACTORY_DEPLOY_PASSWORD: $(ARTIFACTORY_DEPLOY_PASSWORD)
ARTIFACTORY_DEPLOY_PASSWORD: $(ARTIFACTORY_QA_DEPLOYER_ACCESS_TOKEN)
PGP_SIGN_KEY_PATH: $(signKey.secureFilePath)
PGP_PASSPHRASE: $(PGP_PASSPHRASE)
inputs:
Expand Down Expand Up @@ -518,10 +533,9 @@ stages:
- task: Maven@3
displayName: 'Run Maven ITs for $(PRODUCT) $(SQ_VERSION)'
env:
ARTIFACTORY_QA_READER_USERNAME: $(ARTIFACTORY_QA_READER_USERNAME)
ARTIFACTORY_QA_READER_PASSWORD: $(ARTIFACTORY_QA_READER_PASSWORD)
# For Orchestrator
ARTIFACTORY_API_KEY: $(ARTIFACTORY_API_KEY)
ARTIFACTORY_QA_READER_PASSWORD: $(ARTIFACTORY_PRIVATE_READER_ACCESS_TOKEN)
# For Orchestrator (https://github.com/SonarSource/orchestrator/commit/d5396c75ab77e6088afe58e61b0cd0693ac885f0)
ARTIFACTORY_ACCESS_TOKEN: $(ARTIFACTORY_PRIVATE_READER_ACCESS_TOKEN)
GITHUB_TOKEN: $(GITHUB_TOKEN)
MAVEN_LOCAL_REPOSITORY: $(MAVEN_CACHE_FOLDER)
NUGET_PATH: $(NUGETEXETOOLPATH)
Expand Down

0 comments on commit 2269914

Please sign in to comment.