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