Commit f2b7b828 authored by Josh Steinberg's avatar Josh Steinberg

added sonarqube to pom and jenkinsfile

parent 09bda08e
...@@ -21,5 +21,19 @@ pipeline { ...@@ -21,5 +21,19 @@ pipeline {
} }
} }
} }
stage('Sonarqube'){
steps{
withSonarQubeEnv('sonarqube-scanner'){
sh 'mvn clean package sonar:sonar'
}
}
}
stage("Quality Gate"){
steps{
timeout(time: 1, unit: 'HOURS'){
waitForQualityGate abortPipeline = true
}
}
}
} }
} }
...@@ -38,6 +38,12 @@ ...@@ -38,6 +38,12 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- end::tests[] --> <!-- end::tests[] -->
<dependency>
<groupId></groupId>
<artifactId></artifactId>
<version></version>
</dependency>
</dependencies> </dependencies>
<build> <build>
...@@ -47,6 +53,15 @@ ...@@ -47,6 +53,15 @@
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.4.0.905</version>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment