Skip to content

Commit 4c0c561

Browse files
authored
Update Jenkinsfile
1 parent 9844467 commit 4c0c561

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pipeline{
2-
agent any
2+
agent {label 'angular'}
33
stages{
44
stage('Git Checkout Stage'){
55
steps{
@@ -11,5 +11,12 @@ pipeline{
1111
sh 'mvn clean install'
1212
}
1313
}
14+
stage('SonarQube Analysis Stage') {
15+
steps{
16+
withSonarQubeEnv('sonarqube-server') {
17+
sh "mvn clean verify sonar:sonar"
18+
}
19+
}
20+
}
1421
}
1522
}

0 commit comments

Comments
 (0)