Skip to content

Commit 6a7545c

Browse files
author
William Delanoue
committed
add Jenkinsfile
1 parent 71cf03b commit 6a7545c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Jenkinsfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
node {
2+
// Mark the code checkout 'stage'....
3+
stage 'Checkout'
4+
5+
// Get some code from a GitHub repository
6+
git url: 'https://github.com/fakemongo/fongo.git'
7+
8+
// Get the maven tool.
9+
// ** NOTE: This 'M3' maven tool must be configured
10+
// ** in the global configuration.
11+
def mvnHome = tool 'M3'
12+
13+
// Mark the code build 'stage'....
14+
stage 'Build'
15+
// Run the maven build
16+
sh "${mvnHome}/bin/mvn clean install"
17+
}
18+

0 commit comments

Comments
 (0)