diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b12f8d1a0a8218e58374d272bc04501cd51eb389..c34a4cda6fffb972f3a6d111112e0de51192d046 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 921de2f5af5c02b4377b77b4592086eee7bcbe37..a709344b8317bf52f653d00f7673c5bcc71f6e7c 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 a0898c6ca4e09887d89e656a94f975aea4ac8998..4879f772e34fc5d077f98ab5279ccb32625e7b2c 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