File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,15 @@ jobs:
2424 java-version : 1.8
2525 - name : Grant execute permission for gradlew
2626 run : chmod +x gradlew
27+ - name : Extract branch name
28+ shell : bash
29+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
30+ id : extract_branch
2731 - name : Execute build test jacocoTestReport and Sonar
2832 env :
2933 SONAR_TOKEN : ${{secrets.SONAR_TOKEN}}
3034 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31- run : ./gradlew build test jacocoTestReport sonarqube --refresh-dependencies --no-daemon --continue
35+ run : ./gradlew build test jacocoTestReport sonarqube -Dsonar.branch=${{ steps.extract_branch.outputs.branch }} - -refresh-dependencies --no-daemon --continue
3236# run: ./gradlew test jacocoTestReport && cp build/reports/jacoco/report.xml jacoco.xml || echo "Code coverage failed"
3337# - name: Push codeCoverage to Codecov
3438# run: bash <(curl -s https://codecov.io/bash)
You can’t perform that action at this time.
0 commit comments