From c42c61d810808e5af7f5c0977dcbeea3e9c035e6 Mon Sep 17 00:00:00 2001 From: Parvez Misarwala Date: Tue, 2 May 2017 15:47:55 +0530 Subject: [PATCH 01/11] Delete Jenkinsfile --- Jenkinsfile | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 887605e..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,23 +0,0 @@ -node { - def mvnHome - stage('Preparation') { // for display purposes - // Get some code from a GitHub repository - git 'https://github.com/pmisarwala/JunitExample.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 - if (isUnix()) { - sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package" - } else { - bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/) - } - } - stage('Results') { - junit '**/target/surefire-reports/TEST-*.xml' - archive 'target/*.war' - } -} From 3336063ccad2980abba1049259929998f270968e Mon Sep 17 00:00:00 2001 From: Parvez Misarwala Date: Tue, 2 May 2017 15:48:11 +0530 Subject: [PATCH 02/11] Delete .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b83d222..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/target/ From 30854780caa9918e1dec9688e3d8a2e6255d6ede Mon Sep 17 00:00:00 2001 From: Parvez Misarwala Date: Wed, 3 May 2017 12:09:31 +0530 Subject: [PATCH 03/11] Create Jenkinsfile --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..5b328f6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +node { + def mvnHome + stage('Preparation') { // for display purposes + // Get some code from a GitHub repository + git 'https://github.com/pmisarwala/JunitExample.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 + if (isUnix()) { + sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package" + } else { + bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/) + } + } + stage('Results') { + junit '**/target/surefire-reports/TEST-*.xml' + archive 'target/*.jar' + } +} From 36444659405e75d60b17d398afa044fbea5f8a6f Mon Sep 17 00:00:00 2001 From: Parvez Misarwala Date: Wed, 3 May 2017 12:12:18 +0530 Subject: [PATCH 04/11] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5b328f6..d3d8e5d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ node { + echo "Parvez" def mvnHome stage('Preparation') { // for display purposes // Get some code from a GitHub repository From 8c51282f858b33eb2dda90a64b3fa75990aa7f80 Mon Sep 17 00:00:00 2001 From: parvez Date: Wed, 3 May 2017 14:38:36 +0530 Subject: [PATCH 05/11] post commit to run --- file1.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 file1.txt diff --git a/file1.txt b/file1.txt new file mode 100644 index 0000000..e69de29 From cd90cabda685c3443b81bbcb36f412d454089b2c Mon Sep 17 00:00:00 2001 From: parvez Date: Wed, 3 May 2017 14:49:19 +0530 Subject: [PATCH 06/11] check post receive --- file1.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/file1.txt b/file1.txt index e69de29..51deae6 100644 --- a/file1.txt +++ b/file1.txt @@ -0,0 +1 @@ +adsfsd From 8c60810119da9a1f4dfa14d6f7fbb9ee35df3408 Mon Sep 17 00:00:00 2001 From: vjasiva Date: Thu, 4 May 2017 12:26:55 +0530 Subject: [PATCH 07/11] new changes by siva --- src/test/java/com/mslc/TestHelloWorld.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/mslc/TestHelloWorld.java b/src/test/java/com/mslc/TestHelloWorld.java index bc4e645..95c884d 100755 --- a/src/test/java/com/mslc/TestHelloWorld.java +++ b/src/test/java/com/mslc/TestHelloWorld.java @@ -1,3 +1,4 @@ + package com.mslc; import static org.junit.Assert.assertEquals; From 19f89a8add7dab595873c8202b44e3d4d5577cf7 Mon Sep 17 00:00:00 2001 From: vjasiva Date: Thu, 4 May 2017 12:28:56 +0530 Subject: [PATCH 08/11] new changes by siva1 --- src/test/java/com/mslc/TestHelloWorld.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/com/mslc/TestHelloWorld.java b/src/test/java/com/mslc/TestHelloWorld.java index 95c884d..0c2f3d0 100755 --- a/src/test/java/com/mslc/TestHelloWorld.java +++ b/src/test/java/com/mslc/TestHelloWorld.java @@ -1,4 +1,6 @@ + + package com.mslc; import static org.junit.Assert.assertEquals; From c52d73cb6cafb04f84c0ed68dad2cc7884d9b799 Mon Sep 17 00:00:00 2001 From: vjasiva Date: Thu, 4 May 2017 12:29:38 +0530 Subject: [PATCH 09/11] siva1 --- src/test/java/com/mslc/TestHelloWorld.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/java/com/mslc/TestHelloWorld.java b/src/test/java/com/mslc/TestHelloWorld.java index 0c2f3d0..bc4e645 100755 --- a/src/test/java/com/mslc/TestHelloWorld.java +++ b/src/test/java/com/mslc/TestHelloWorld.java @@ -1,6 +1,3 @@ - - - package com.mslc; import static org.junit.Assert.assertEquals; From 2441c4283b8f9bfbd54f4eca2e1baa99563cf26f Mon Sep 17 00:00:00 2001 From: vjasiva Date: Thu, 4 May 2017 12:30:16 +0530 Subject: [PATCH 10/11] siva2 --- src/test/java/com/mslc/TestHelloWorld.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/com/mslc/TestHelloWorld.java b/src/test/java/com/mslc/TestHelloWorld.java index bc4e645..5a84d3c 100755 --- a/src/test/java/com/mslc/TestHelloWorld.java +++ b/src/test/java/com/mslc/TestHelloWorld.java @@ -1,3 +1,9 @@ + + + + + + package com.mslc; import static org.junit.Assert.assertEquals; From 62f267e3b99d41b00aa7eed2a4eee5af1ec27c3b Mon Sep 17 00:00:00 2001 From: vjasiva Date: Fri, 5 May 2017 14:55:34 +0530 Subject: [PATCH 11/11] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3d8e5d..3a55061 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ node { // Get the Maven tool. // ** NOTE: This 'M3' Maven tool must be configured // ** in the global configuration. - mvnHome = tool 'm3' + mvnHome = tool 'apache-maven-3.5.0' } stage('Build') { // Run the maven build