From cc255be78625340cd9e8860aa9f9a4f515128116 Mon Sep 17 00:00:00 2001
From: Ichlasul Affan <ichlaffterlalu@gmail.com>
Date: Mon, 17 Feb 2020 11:53:43 +0700
Subject: [PATCH] Use debug to test if current SonarScanner Flutter works

---
 .gitlab-ci.yml | 6 ++++++
 Dockerfile     | 2 +-
 build.sh       | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b12f8d1..c34a4cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,6 +25,9 @@ SonarScanner Analysis Dev:
       -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
       -Dsonar.branch.name=$CI_COMMIT_REF_NAME
       -Dsonar.branch.target=staging
+      -X
+      --stacktrace
+      --debug
   except:
     - master
     - staging
@@ -38,6 +41,9 @@ SonarScanner Analysis:
       -Dsonar.login=$SONARQUBE_TOKEN
       -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
       -Dsonar.branch.name=$CI_COMMIT_REF_NAME
+      -X
+      --stacktrace
+      --debug
   only:
     - master
     - staging
diff --git a/Dockerfile b/Dockerfile
index 921de2f..a709344 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,7 +60,7 @@ CMD ["sonar-scanner"]
 ## keys must be provided during build process, i.e. `docker build` invocation.
 ## It is also possible to pass other metadata values via build arguments.
 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_REVISION=""
 ARG IMAGE_VENDOR="Faculty of Computer Science Universitas Indonesia"
diff --git a/build.sh b/build.sh
index a0898c6..4879f77 100644
--- a/build.sh
+++ b/build.sh
@@ -19,7 +19,7 @@ if ! [ -x "$(command -v awk)" ]; then
     exit 1
 fi
 
-if ! [ -n "$1" ]; then
+if [ -z "$1" ]; then
     echo "Error: missing 1st argument of $0, i.e. namespace of the container image." >&2
     exit 1
 fi
-- 
GitLab