ci: add Jenkinsfile for CI pipeline and configure SonarQube analysis

This commit is contained in:
yusing
2025-11-13 23:39:23 +08:00
parent c156173757
commit bbe308e821
2 changed files with 12 additions and 0 deletions

11
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,11 @@
node {
stage('SCM') {
checkout scm
}
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner';
withSonarQubeEnv() {
sh "${scannerHome}/bin/sonar-scanner"
}
}
}

1
sonar-project.properties Normal file
View File

@@ -0,0 +1 @@
sonar.projectKey=yusing_godoxy_33d53d4d-f93d-4390-8726-4635ec5f7610