Skip to content

Commit 3eac736

Browse files
committed
config sonarqube first
1 parent ff8b081 commit 3eac736

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Jenkinsfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ pipeline {
77
}
88

99
stages {
10+
11+
stage('SCM') {
12+
checkout scm
13+
}
14+
15+
stage('SonarQube Analysis') {
16+
def scannerHome = tool 'SonarScanner';
17+
withSonarQubeEnv() {
18+
sh "${scannerHome}/bin/sonar-scanner"
19+
}
20+
}
21+
1022
stage('build') {
1123
steps {
1224
echo "build Pipeline"

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=getting-started-app

0 commit comments

Comments
 (0)