Skip to content

Commit 4e199e0

Browse files
authored
SONARJAVA-5890 : Support develocity (#99)
1 parent fef4800 commit 4e199e0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1616
cancel-in-progress: true
1717

18+
env:
19+
USE_DEVELOCITY: true
20+
DEVELOCITY_URL: https://develocity-public.sonar.build/
21+
1822
jobs:
1923
build:
2024
runs-on: github-ubuntu-latest-s # Public repository runner
@@ -36,6 +40,8 @@ jobs:
3640
deploy-pull-request: true
3741
artifactory-reader-role: private-reader # Override for public repo using private access
3842
artifactory-deployer-role: qa-deployer # Override for public repo using private access
43+
use-develocity: ${{ env.USE_DEVELOCITY }}
44+
develocity-url: ${{ env.DEVELOCITY_URL }}
3945

4046
qa:
4147
needs: [build]
@@ -66,6 +72,7 @@ jobs:
6672
run: rm -r ./its/sources/kotlin
6773
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
6874
with:
75+
cache_save: false
6976
version: 2025.7.12
7077
- name: Get GitHub Token for QA Licenses
7178
id: secrets
@@ -77,6 +84,8 @@ jobs:
7784
uses: SonarSource/ci-github-actions/config-gradle@v1
7885
with:
7986
artifactory-reader-role: private-reader
87+
use-develocity: ${{ env.USE_DEVELOCITY }}
88+
develocity-url: ${{ env.DEVELOCITY_URL }}
8089
- name: Run QA Tests
8190
env:
8291
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
@@ -104,4 +113,4 @@ jobs:
104113
steps:
105114
- uses: SonarSource/ci-github-actions/promote@v1
106115
with:
107-
promote-pull-request: true # Enable PR artifact promotion
116+
promote-pull-request: true # Enable PR artifact promotion

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
develocity {
13-
server = 'https://develocity.sonar.build'
13+
server = 'https://develocity-public.sonar.build'
1414
}
1515

1616
def isCI = System.getenv('CI') != null

0 commit comments

Comments
 (0)