Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 31 additions & 21 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'
}
}

}

}
}
21 changes: 20 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.khoubyari</groupId>
<artifactId>spring-boot-rest-example</artifactId>
<artifactId>SurendraBabuRN</artifactId>
<version>0.5.0</version>
<packaging>war</packaging>
<description>Example project demonstrating REST APIs implemented using Spring Boot, in-memory database, embedded Tomcat, Swagger, JsonPath, Hamcrest and MockMVC</description>
Expand Down Expand Up @@ -116,6 +116,25 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<argLine>
--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
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down