Skip to content

Commit

Permalink
remove sonar from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Feb 25, 2021
1 parent 706a83a commit 0ef4aab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ jobs:
run: $DOCKER_COMMAND mvn package -B -Dmaven.repo.local=./build/.m2/repository

# SonarQube for master
- name: docker - sonar qube on master
if: github.ref == 'refs/heads/master'
run: mvn sonar:sonar -q "-Dsonar.branch.name=${GITHUB_REF}" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}"
#- name: docker - sonar qube on master
# if: github.ref == 'refs/heads/master'
# run: mvn sonar:sonar -q "-Dsonar.branch.name=${GITHUB_REF}" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}"

# SonarQube for branches
- name: docker - sonar qube on branches
if: github.ref != 'refs/heads/master'
run: mvn sonar:sonar -q "-Dsonar.branch.name=${GITHUB_REF}" "-Dsonar.branch.target=master" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}"
#- name: docker - sonar qube on branches
# if: github.ref != 'refs/heads/master'
# run: mvn sonar:sonar -q "-Dsonar.branch.name=${GITHUB_REF}" "-Dsonar.branch.target=master" "-Dsonar.host.url=${SONAR_URL}" "-Dsonar.login=${SONAR_TOKEN}" "-Dsonar.organization=${SONAR_ORGANISATION}"

- name: run unit tests with coverage reports
run: mvn test -q && bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 0ef4aab

Please sign in to comment.