Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit cc255be7 authored by Ichlasul Affan's avatar Ichlasul Affan
Browse files

Use debug to test if current SonarScanner Flutter works

parent 9ccd9eb9
Branches
No related tags found
No related merge requests found
...@@ -25,6 +25,9 @@ SonarScanner Analysis Dev: ...@@ -25,6 +25,9 @@ SonarScanner Analysis Dev:
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
-Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.branch.target=staging -Dsonar.branch.target=staging
-X
--stacktrace
--debug
except: except:
- master - master
- staging - staging
...@@ -38,6 +41,9 @@ SonarScanner Analysis: ...@@ -38,6 +41,9 @@ SonarScanner Analysis:
-Dsonar.login=$SONARQUBE_TOKEN -Dsonar.login=$SONARQUBE_TOKEN
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
-Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.branch.name=$CI_COMMIT_REF_NAME
-X
--stacktrace
--debug
only: only:
- master - master
- staging - staging
......
...@@ -60,7 +60,7 @@ CMD ["sonar-scanner"] ...@@ -60,7 +60,7 @@ CMD ["sonar-scanner"]
## keys must be provided during build process, i.e. `docker build` invocation. ## keys must be provided during build process, i.e. `docker build` invocation.
## It is also possible to pass other metadata values via build arguments. ## It is also possible to pass other metadata values via build arguments.
ARG IMAGE_CREATED="" ARG IMAGE_CREATED=""
ARG IMAGE_SOURCE="https://gitlab.cs.ui.ac.id/ichlasul.affan/" ARG IMAGE_SOURCE="https://gitlab.cs.ui.ac.id/ichlasul.affan/sonar-scanner-cli-flutter-image"
ARG IMAGE_VERSION=${SONAR_SCANNER_CLI_VERSION} ARG IMAGE_VERSION=${SONAR_SCANNER_CLI_VERSION}
ARG IMAGE_REVISION="" ARG IMAGE_REVISION=""
ARG IMAGE_VENDOR="Faculty of Computer Science Universitas Indonesia" ARG IMAGE_VENDOR="Faculty of Computer Science Universitas Indonesia"
......
...@@ -19,7 +19,7 @@ if ! [ -x "$(command -v awk)" ]; then ...@@ -19,7 +19,7 @@ if ! [ -x "$(command -v awk)" ]; then
exit 1 exit 1
fi fi
if ! [ -n "$1" ]; then if [ -z "$1" ]; then
echo "Error: missing 1st argument of $0, i.e. namespace of the container image." >&2 echo "Error: missing 1st argument of $0, i.e. namespace of the container image." >&2
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment