Skip to content

Commit f4c6257

Browse files
committed
adding jenkinsfile
1 parent c978e01 commit f4c6257

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

jenkinsfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node {
2+
def mvnHome
3+
stage('Preparation') { // for display purposes
4+
// Get some code from a GitHub repository
5+
git 'https://github.com/prajnadnayak/java-maven-junit-helloworld.git'
6+
// Get the Maven tool.
7+
// ** NOTE: This 'M3' Maven tool must be configured
8+
// ** in the global configuration.
9+
mvnHome = tool 'M3'
10+
}
11+
stage('Build') {
12+
// Run the maven build
13+
14+
sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package"
15+
}
16+
}

0 commit comments

Comments
 (0)