mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 21:17:10 +00:00
Compare commits
2 commits
master
...
avi/qa_tes
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86f2bbdd77 | ||
|
|
bdec21efd9 |
2 changed files with 6 additions and 6 deletions
|
|
@ -10,5 +10,5 @@ fi
|
|||
_tmp_file=$(ls "${INPUT_PROJECTBASEDIR}/" | head -1)
|
||||
PERM=$(stat -c "%u:%g" "${INPUT_PROJECTBASEDIR}/$_tmp_file")
|
||||
|
||||
chown -R $PERM "${INPUT_PROJECTBASEDIR}/.scannerwork/"
|
||||
chown -R "$PERM" "${INPUT_PROJECTBASEDIR}/.scannerwork/"
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ if [[ -z "${SONARCLOUD_URL}" ]]; then
|
|||
SONARCLOUD_URL="https://sonarcloud.io"
|
||||
fi
|
||||
|
||||
debug_flag=''
|
||||
if [[ "$RUNNER_DEBUG" == '1' ]]; then
|
||||
debug_flag=' --debug '
|
||||
fi
|
||||
|
||||
debug=""
|
||||
[[ "$RUNNER_DEBUG" == '1' ]] && debug="yes"
|
||||
|
||||
unset JAVA_HOME
|
||||
sonar-scanner $debug_flag -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}
|
||||
|
||||
sonar-scanner ${debug:+"--debug"} -Dsonar.projectBaseDir="${INPUT_PROJECTBASEDIR}" -Dsonar.host.url="${SONARCLOUD_URL}" "${INPUT_ARGS}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue