Skip to content

Commit

Permalink
Configure Sonarqube host
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Jan 9, 2025
1 parent c79179f commit ebd9473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/java-gradle-assess-code-quality/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ runs:

# sonar.branch.autoconfig.disabled is necessary for autocreation of projects on Sonarcloud to work
- name: Assess code quality
if: ${{ inputs.sonar-token != '' && inputs.sonar-organization != '' }}
run: ./gradlew -Dsonar.branch.autoconfig.disabled=true -Dsonar.host.url=${{ inputs.sonar-host }} -Dsonar.organization=${{ inputs.sonar-organization }} --info --stacktrace sonarqube ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }}
if: ${{ inputs.sonar-token != '' }}
run: ./gradlew -Dsonar.branch.autoconfig.disabled=true -Dsonar.host.url=${{ inputs.sonar-host }} ${{ (inputs.sonar-organization != '' && format('-Dsonar.organization={0}', inputs.sonar-organization)) || '' }} --info --stacktrace sonarqube ${{ inputs.gradle-refresh-dependencies == 'true' && '--refresh-dependencies' || '' }}
shell: bash
working-directory: ${{ inputs.working-directory }}
env:
Expand Down

0 comments on commit ebd9473

Please sign in to comment.