diff --git a/README.md b/README.md index 8dfd06f..a5f8571 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Welcome to JAX London Demo Repository, Enjoy ## This repo contains basic Maven project with Hello-World war file +Test-Felix In order to make it work, please do the following:
<% diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..2ffc8b9 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,24 @@ +node { + def mvnHome + stage('Preparation') { // for display purposes + // Get some code from a GitHub repository + git 'https://github.com/Flixse/jaxlondon.git' + // Get the Maven tool. + // ** NOTE: This 'M3' Maven tool must be configured + // ** in the global configuration. + mvnHome = tool 'M3' + } + stage('Build') { + // Run the maven build + withEnv(["MVN_HOME=$mvnHome"]) { + if (isUnix()) { + sh '"$MVN_HOME/bin/mvn" -Dmaven.test.failure.ignore clean package -Pci' + } else { + bat(/"%MVN_HOME%\bin\mvn" clean install/) + } + } + } + stage('Results') { + junit '**/target/surefire-reports/TEST-*.xml' + } +}