Skip to content

Commit 73ab8f5

Browse files
authored
Update Jenkinsfile
1 parent 670bbc8 commit 73ab8f5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Jenkinsfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ podTemplate(label: nlabel,
2020

2121
stage ('maven build') {
2222
container('maven') {
23-
sh ("mvn -DskipTests package -Dsonar.host.url=http://192.168.0.224:9000")
23+
sh ("mvn clean install")
2424
}
2525
}
2626

27-
27+
28+
stage ('analysis') {
29+
container('maven') {
30+
withSonarQubeEnv('My SonarQube Server') {
31+
sh 'mvn clean package sonar:sonar'
32+
}
33+
}
34+
}
2835
}
2936
}

0 commit comments

Comments
 (0)