We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c978e01 commit f4c6257Copy full SHA for f4c6257
jenkinsfile
@@ -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