-
-
Save CSchulz/178cdd3852e9b86937e8eebc4e9334b2 to your computer and use it in GitHub Desktop.
Jenkins Pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
// Mark the code checkout 'stage'.... | |
stage 'Checkout' | |
// Get some code from a GitHub repository | |
git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' | |
// Get the maven tool. | |
// ** NOTE: This 'M3' maven tool must be configured | |
// ** in the global configuration. | |
def mvnHome = tool 'M3' | |
// Mark the code build 'stage'.... | |
stage 'Build' | |
// Run the maven build | |
sh "${mvnHome}/bin/mvn clean install" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment