From bbe308e82170593da3f86e7c2b2598960b479e24 Mon Sep 17 00:00:00 2001 From: yusing Date: Thu, 13 Nov 2025 23:39:23 +0800 Subject: [PATCH] ci: add Jenkinsfile for CI pipeline and configure SonarQube analysis --- Jenkinsfile | 11 +++++++++++ sonar-project.properties | 1 + 2 files changed, 12 insertions(+) create mode 100644 Jenkinsfile create mode 100644 sonar-project.properties diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..796c74aa --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,11 @@ +node { + stage('SCM') { + checkout scm + } + stage('SonarQube Analysis') { + def scannerHome = tool 'SonarScanner'; + withSonarQubeEnv() { + sh "${scannerHome}/bin/sonar-scanner" + } + } +} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..e5ae132c --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=yusing_godoxy_33d53d4d-f93d-4390-8726-4635ec5f7610 \ No newline at end of file