Skip to content

Commit ca8a52a

Browse files
cirrasfourls
authored andcommitted
Add ORCHESTRATOR_SONAR_VERSION override for integration tests
1 parent 9a96d87 commit ca8a52a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ jobs:
2727
distribution: 'temurin'
2828
cache: maven
2929
- name: Maven Install
30-
run: mvn clean install -Pci --batch-mode --no-transfer-progress
30+
env:
31+
ORCHESTRATOR_SONAR_VERSION: ${{ vars.ORCHESTRATOR_SONAR_VERSION || 'LATEST_RELEASE' }}
32+
run: >
33+
mvn clean install
34+
-Dsonar.runtimeVersion=$ORCHESTRATOR_SONAR_VERSION
35+
-Pci --batch-mode --no-transfer-progress
3136
- name: Upload plugin jar
3237
uses: actions/upload-artifact@v4
3338
with:

.github/workflows/sonar.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
31+
ORCHESTRATOR_SONAR_VERSION: ${{ vars.ORCHESTRATOR_SONAR_VERSION || 'LATEST_RELEASE' }}
3132
run: >
3233
mvn clean install -Pci
34+
-Dsonar.runtimeVersion=$ORCHESTRATOR_SONAR_VERSION
3335
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=integrated-application-development_sonar-delphi
3436
--batch-mode --no-transfer-progress

0 commit comments

Comments
 (0)