From d279e2998c352e2de04480fbe0879d7d44a99e54 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Wed, 7 Oct 2020 08:01:00 +0100 Subject: [PATCH 01/16] Add readme --- README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 From 6172286d584026610de75f038f025b719af9ad7a Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 08:54:45 +0100 Subject: [PATCH 02/16] Lots of passing --- src/test/java/com/github/App2Test.java | 87 ++++++++++++++++++++++++++ src/test/java/com/github/AppTest.java | 57 ++++++++++++++++- 2 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 src/test/java/com/github/App2Test.java diff --git a/src/test/java/com/github/App2Test.java b/src/test/java/com/github/App2Test.java new file mode 100644 index 0000000..c4a31fc --- /dev/null +++ b/src/test/java/com/github/App2Test.java @@ -0,0 +1,87 @@ +package com.github; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.List; +import org.junit.Test; + +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; + +/** + * Unit test for simple App. + */ +public class App2Test { + /** + * Rigorous Test :-) + */ + @Test + public void attachment() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment2() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment3() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment4() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment5() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment6() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } +} diff --git a/src/test/java/com/github/AppTest.java b/src/test/java/com/github/AppTest.java index 0c0ad05..f7a3756 100644 --- a/src/test/java/com/github/AppTest.java +++ b/src/test/java/com/github/AppTest.java @@ -29,6 +29,61 @@ public void attachment() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(false, is(true)); + assertThat(true, is(true)); + } + + @Test + public void attachment2() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment3() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment4() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment5() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); + } + + @Test + public void attachment6() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(true, is(true)); } } From eb4bd867581ff6075f701a402d3cb3a8a047c498 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 08:55:16 +0100 Subject: [PATCH 03/16] Some ignored --- src/test/java/com/github/App2Test.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/com/github/App2Test.java b/src/test/java/com/github/App2Test.java index c4a31fc..e3c1b51 100644 --- a/src/test/java/com/github/App2Test.java +++ b/src/test/java/com/github/App2Test.java @@ -7,6 +7,7 @@ import java.nio.file.Paths; import java.util.Collections; import java.util.List; +import org.junit.Ignore; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; @@ -31,6 +32,7 @@ public void attachment() throws IOException { } @Test + @Ignore public void attachment2() throws IOException { Path file = Paths.get("hello.txt"); List linesInMemory = Collections.singletonList("HEY HEY"); @@ -75,6 +77,7 @@ public void attachment5() throws IOException { } @Test + @Ignore public void attachment6() throws IOException { Path file = Paths.get("hello.txt"); List linesInMemory = Collections.singletonList("HEY HEY"); From 96ed77ef717d8c369390b56c12d5ba00ae2c47d1 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 08:55:55 +0100 Subject: [PATCH 04/16] Everything --- src/test/java/com/github/App2Test.java | 4 ++-- src/test/java/com/github/AppTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/github/App2Test.java b/src/test/java/com/github/App2Test.java index e3c1b51..bf9a1ec 100644 --- a/src/test/java/com/github/App2Test.java +++ b/src/test/java/com/github/App2Test.java @@ -40,7 +40,7 @@ public void attachment2() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(true, is(true)); + assertThat(false, is(true)); } @Test @@ -73,7 +73,7 @@ public void attachment5() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(true, is(true)); + assertThat(false, is(true)); } @Test diff --git a/src/test/java/com/github/AppTest.java b/src/test/java/com/github/AppTest.java index f7a3756..68abd04 100644 --- a/src/test/java/com/github/AppTest.java +++ b/src/test/java/com/github/AppTest.java @@ -62,7 +62,7 @@ public void attachment4() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(true, is(true)); + assertThat(false, is(true)); } @Test From 0644108a830e5b24d746029d80a7e2fc70c908ba Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 08:57:17 +0100 Subject: [PATCH 05/16] Just one failing --- src/test/java/com/github/App2Test.java | 2 +- src/test/java/com/github/AppTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/github/App2Test.java b/src/test/java/com/github/App2Test.java index bf9a1ec..e2efec4 100644 --- a/src/test/java/com/github/App2Test.java +++ b/src/test/java/com/github/App2Test.java @@ -73,7 +73,7 @@ public void attachment5() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(false, is(true)); + assertThat(true, is(true)); } @Test diff --git a/src/test/java/com/github/AppTest.java b/src/test/java/com/github/AppTest.java index 68abd04..f7a3756 100644 --- a/src/test/java/com/github/AppTest.java +++ b/src/test/java/com/github/AppTest.java @@ -62,7 +62,7 @@ public void attachment4() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(false, is(true)); + assertThat(true, is(true)); } @Test From 5b2b044c2616f9a5b68932add8fdeba28b503515 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 09:13:11 +0100 Subject: [PATCH 06/16] facepalm --- src/test/java/com/github/App2Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/github/App2Test.java b/src/test/java/com/github/App2Test.java index e2efec4..b54cce3 100644 --- a/src/test/java/com/github/App2Test.java +++ b/src/test/java/com/github/App2Test.java @@ -51,7 +51,7 @@ public void attachment3() throws IOException { System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); - assertThat(true, is(true)); + assertThat(false, is(true)); } @Test From aaca7c9f3e0d1f02193931e04b5ce61f4623dd16 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sat, 10 Oct 2020 11:41:43 +0100 Subject: [PATCH 07/16] More than 10 failing --- src/test/java/com/github/App3Test.java | 90 ++++++++++++++++++++++++++ src/test/java/com/github/App4Test.java | 90 ++++++++++++++++++++++++++ src/test/java/com/github/App5Test.java | 90 ++++++++++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 src/test/java/com/github/App3Test.java create mode 100644 src/test/java/com/github/App4Test.java create mode 100644 src/test/java/com/github/App5Test.java diff --git a/src/test/java/com/github/App3Test.java b/src/test/java/com/github/App3Test.java new file mode 100644 index 0000000..9f354d8 --- /dev/null +++ b/src/test/java/com/github/App3Test.java @@ -0,0 +1,90 @@ +package com.github; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.List; +import org.junit.Ignore; +import org.junit.Test; + +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; + +/** + * Unit test for simple App. + */ +public class App3Test { + /** + * Rigorous Test :-) + */ + @Test + public void attachment() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment2() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment3() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment4() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment5() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment6() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } +} diff --git a/src/test/java/com/github/App4Test.java b/src/test/java/com/github/App4Test.java new file mode 100644 index 0000000..47ce09c --- /dev/null +++ b/src/test/java/com/github/App4Test.java @@ -0,0 +1,90 @@ +package com.github; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.List; +import org.junit.Ignore; +import org.junit.Test; + +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; + +/** + * Unit test for simple App. + */ +public class App4Test { + /** + * Rigorous Test :-) + */ + @Test + public void attachment() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment2() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment3() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment4() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment5() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment6() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } +} diff --git a/src/test/java/com/github/App5Test.java b/src/test/java/com/github/App5Test.java new file mode 100644 index 0000000..6af850b --- /dev/null +++ b/src/test/java/com/github/App5Test.java @@ -0,0 +1,90 @@ +package com.github; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.List; +import org.junit.Ignore; +import org.junit.Test; + +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertThat; + +/** + * Unit test for simple App. + */ +public class App5Test { + /** + * Rigorous Test :-) + */ + @Test + public void attachment() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment2() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment3() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment4() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + public void attachment5() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } + + @Test + @Ignore + public void attachment6() throws IOException { + Path file = Paths.get("hello.txt"); + List linesInMemory = Collections.singletonList("HEY HEY"); + Files.write(file, linesInMemory, StandardCharsets.UTF_8); + + System.out.println("[[ATTACHMENT|" + file.toAbsolutePath() + "]]"); + + assertThat(false, is(true)); + } +} From 2dee37270f84423b4eadd92c1620c94fa54f5741 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Thu, 22 Oct 2020 08:23:20 +0100 Subject: [PATCH 08/16] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e69de29..ef0493b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +hello From fe5c16c29683f52b9407f56ed607e52edb3f40d5 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Fri, 23 Oct 2020 16:57:52 +0100 Subject: [PATCH 09/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef0493b..9c9f476 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello +hello new commit From 7dea1d9f16d2071bb6d23016d333bae5d12ee78f Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Fri, 23 Oct 2020 17:00:45 +0100 Subject: [PATCH 10/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b675fd5..5122fe1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { // If Maven was able to run the tests, even if some of the test // failed, record the test results and archive the jar file. success { - junit '**/target/surefire-reports/TEST-*.xml' + junit checksName: 'Testss', testResults: '**/target/surefire-reports/TEST-*.xml' archiveArtifacts 'target/*.jar' } } From 2e824cbf697d66fadeb3a86bf55f93c910c28b75 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Fri, 23 Oct 2020 21:13:17 +0100 Subject: [PATCH 11/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c9f476..ac982d2 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello new commit +hello new commit 2 From cdbf31644b5228dae602533056d097f05172c889 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Sun, 25 Oct 2020 07:39:17 +0000 Subject: [PATCH 12/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac982d2..b138ed8 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello new commit 2 +hello new commit 3 From 16d13f96d9e69bd90533bf422ac447cace1eac64 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Thu, 3 Dec 2020 08:58:57 +0000 Subject: [PATCH 13/16] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5122fe1..b675fd5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ pipeline { // If Maven was able to run the tests, even if some of the test // failed, record the test results and archive the jar file. success { - junit checksName: 'Testss', testResults: '**/target/surefire-reports/TEST-*.xml' + junit '**/target/surefire-reports/TEST-*.xml' archiveArtifacts 'target/*.jar' } } From b0c414c7c6b7e348a08d69c6ef8749bebcabcf7e Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Thu, 3 Dec 2020 12:03:44 +0000 Subject: [PATCH 14/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b138ed8..789f611 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello new commit 3 +hello new commit 4 From d158a939a865a5ba6cc86bc42cb89c92d67be385 Mon Sep 17 00:00:00 2001 From: Tim Jacomb <21194782+timja@users.noreply.github.com> Date: Wed, 30 Dec 2020 17:25:53 +0000 Subject: [PATCH 15/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 789f611..cd76c66 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -hello new commit 4 +hello new commit 5 From 5266694647e5ab914a673c9c1d3b31e7b94b49c6 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Wed, 3 Apr 2024 22:09:46 +0100 Subject: [PATCH 16/16] Enclosing blocks --- Jenkinsfile | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5122fe1..af0caaa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,22 @@ -pipeline { - agent any - - stages { - stage('Build') { - steps { - // Run Maven on a Unix agent. - sh "mvn -Dmaven.test.failure.ignore=true clean verify" - } - - post { - // If Maven was able to run the tests, even if some of the test - // failed, record the test results and archive the jar file. - success { - junit checksName: 'Testss', testResults: '**/target/surefire-reports/TEST-*.xml' - archiveArtifacts 'target/*.jar' +def axes = [ + platforms: ['linux', 'windows'], + jdks: [17, 21], +] +def builds = [:] +axes.values().combinations { + def (platform, jdk) = it + builds["${platform}-jdk${jdk}"] = { + node { + stage("${platform.capitalize()} - JDK ${jdk} - Test") { + checkout scm + sh 'sleep 20' + withChecks(name: 'Tests', includeStage: true) { + sh 'mvn -Dmaven.test.failure.ignore=true clean verify' + junit '**/target/surefire-reports/TEST-*.xml' } } } } } + +parallel builds