diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..3cf872299 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + + stages { + + stage('Checkout') { + steps { + echo 'Fetching Code' + } + } + + stage('Build') { + steps { + sh 'mvn clean compile' + } + } + + stage('Test') { + steps { + sh 'mvn test' + } + } + + stage('Package') { + steps { + sh 'mvn package' + } + } + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index f2b7c1429..5803385b1 100644 --- a/pom.xml +++ b/pom.xml @@ -157,44 +157,53 @@ - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.2 - - 1.8 - 1.8 - - - - org.eclipse.jetty - jetty-maven-plugin - 9.2.3.v20140905 - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.19.1 - - methods - 10 - - **/Test*.java - **/Test.java - **/TestCase.java - - - **/*Abstract*Test.java - - - + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.2 + + 1.8 + 1.8 + + + + + org.apache.maven.plugins + maven-war-plugin + 3.3.2 + + + + org.eclipse.jetty + jetty-maven-plugin + 9.2.3.v20140905 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + methods + 10 + + **/Test*.java + **/Test.java + **/TestCase.java + + + **/*Abstract*Test.java + + + + + - - addressbook - + addressbook +