From 8db97cd60c822c43db386d64ae71a3bbd84622c1 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Mon, 28 Sep 2026 16:12:04 +0100 Subject: [PATCH] added support for legacy tickets, fixed switching of modes and also style updates --- scan.sh | 7 ------- scripts/scan.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 scan.sh create mode 100755 scripts/scan.sh diff --git a/scan.sh b/scan.sh deleted file mode 100644 index 77233eb..0000000 --- a/scan.sh +++ /dev/null @@ -1,7 +0,0 @@ -JAVA_HOME="/opt/homebrew/opt/openjdk" \ -PATH="/opt/homebrew/opt/openjdk/bin:$PATH" \ -sonar-scanner \ - -Dsonar.projectKey=Helpdesk \ - -Dsonar.sources=. \ - -Dsonar.host.url=http://127.0.0.1:9001 \ - -Dsonar.login=sqp_36027127786b9a8ed4d0d165bdb3405ed07421d8 diff --git a/scripts/scan.sh b/scripts/scan.sh new file mode 100755 index 0000000..167d3c5 --- /dev/null +++ b/scripts/scan.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# sqp_c0b887930297d93cf088476023c244d901c51204 + +set -euo pipefail + +JAVA_HOME="/opt/homebrew/opt/openjdk" \ +PATH="/opt/homebrew/opt/openjdk/bin:$PATH" \ +sonar-scanner \ + -Dsonar.projectKey=Helpdesk-System \ + -Dsonar.sources=. \ + -Dsonar.host.url=https://sonarcube.absdev.net \ + -Dsonar.token="${SONAR_TOKEN:?SONAR_TOKEN is not set}"