Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseHouldsworth authored Sep 24, 2019
1 parent 55b30a4 commit f8c240f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ node () {
stage('Preparation') { // for display purposes
// Get some code from a GitHub repository
git 'https://github.com/JesseHouldsworth/WebGoat'
checkout scm
//checkout scm

// Get the Maven tool.
// ** NOTE: This 'M3' Maven tool must be configured
// ** in the global configuration.
mvnHome = tool 'M3'
//mvnHome = tool 'M3'
}
stage('Build the application') {
// Run the maven build
sh "'${mvnHome}/bin/mvn' clean install"
//sh 'mvn clean install'
//sh "'${mvnHome}/bin/mvn' clean install"
sh 'mvn -v'
sh 'mvn clean install'
}
stage('Test the application') {
// Run the Sonatype scan
Expand Down

0 comments on commit f8c240f

Please sign in to comment.