Skip to content

Commit b60140f

Browse files
SONARJAVA-5886 Support Develocity on Scala (#98)
1 parent 54d4237 commit b60140f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
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]
@@ -64,6 +70,7 @@ jobs:
6470
run: rm -r ./its/sources/kotlin
6571
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
6672
with:
73+
cache_save: false
6774
version: 2025.7.12
6875
- name: Get GitHub Token for QA Licenses
6976
id: secrets
@@ -75,6 +82,8 @@ jobs:
7582
uses: SonarSource/ci-github-actions/config-gradle@v1
7683
with:
7784
artifactory-reader-role: private-reader
85+
use-develocity: ${{ env.USE_DEVELOCITY }}
86+
develocity-url: ${{ env.DEVELOCITY_URL }}
7887
- name: Run QA Tests
7988
env:
8089
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
@@ -86,6 +95,7 @@ jobs:
8695
"-Dorchestrator.artifactory.accessToken=${ARTIFACTORY_ACCESS_TOKEN}" \
8796
"-DbuildNumber=${BUILD_NUMBER}" \
8897
--info --stacktrace --console plain --no-daemon --build-cache
98+
8999
promote:
90100
name: Promote
91101
needs:

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)