Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
THOREL Arnaud authored and THOREL Arnaud committed Nov 15, 2023
1 parent b8ac41b commit 09477c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
- name: Sonar
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_PROJECT: ${{ vars.GITHUB_REPOSITORY }}
SONAR_BRANCH: ${{ vars.GITHUB_REF_NAME }}
SONAR_ORGANIZATION: ${{ vars.SONAR_ORGANISATION }}
run: |
echo "run sonar on " ${{ GITHUB_REF_NAME }} " for project key :"+${{ GITHUB_REPOSITORY }}
mvn -B package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} -Dsonar.projectKey=${{ GITHUB_REPOSITORY }}
echo "run sonar on " $SONAR_BRANCH " for project key : " $SONAR_PROJECT
mvn -B package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=$SONAR_ORGANIZATION -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.branch.name=$SONAR_BRANCH

0 comments on commit 09477c6

Please sign in to comment.