mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
ci: add Jenkinsfile for CI pipeline and configure SonarQube analysis
This commit is contained in:
11
Jenkinsfile
vendored
Normal file
11
Jenkinsfile
vendored
Normal 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
1
sonar-project.properties
Normal file
@@ -0,0 +1 @@
|
|||||||
|
sonar.projectKey=yusing_godoxy_33d53d4d-f93d-4390-8726-4635ec5f7610
|
||||||
Reference in New Issue
Block a user