diff --git a/Jenkinsfile b/Jenkinsfile
index 0ce8cad..07c0da4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,28 +1,38 @@
pipeline {
+ agent any
- agent any
- tools {
- maven 'm360'
- }
+ stages {
+
+ stage('clone project test23') {
+ steps {
+ git branch:'master' , url:'https://github.com/SurendraBabuRN/sBoot.git'
+ }
+ }
- stages {
- stage('build') {
- steps {
- sh 'mvn install -DskipTests'
- }
- }
+ stage('clean project test') {
+ steps {
+ sh 'mvn clean'
+ }
+ }
- stage('test') {
- steps {
- sh 'mvn test'
-
- post {
- archiveArtifacts artifacts: 'target/**.jar', followSymlinks: false
- junit stdioRetention: '', testResults: 'target/surefire-reports/*.xml'
- }
- }
- }
+ stage('compile') {
+ steps {
+ sh 'mvn compile'
+ }
+ }
+
+ stage('test') {
+ steps {
+ sh 'mvn test'
+ }
+ }
+
+ stage('build') {
+ steps {
+ sh 'mvn clean install'
+ }
+ }
-}
+ }
}
diff --git a/pom.xml b/pom.xml
index e5a9405..338e41b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.khoubyari
- spring-boot-rest-example
+ SurendraBabuRN
0.5.0
war
Example project demonstrating REST APIs implemented using Spring Boot, in-memory database, embedded Tomcat, Swagger, JsonPath, Hamcrest and MockMVC
@@ -116,6 +116,25 @@
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.1.2
+
+
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens java.base/java.security=ALL-UNNAMED
+ --add-opens java.base/sun.nio.ch=ALL-UNNAMED
+
+
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.4.0
+
+
org.apache.maven.plugins
maven-compiler-plugin