From 02f8abac2eec12fa57f40b4da84705c705aceac5 Mon Sep 17 00:00:00 2001 From: Jean Perbet Date: Wed, 14 Feb 2024 08:59:41 +0100 Subject: [PATCH 1/2] assessment push --- src/main/java/se/kth/ci/CIServer.java | 2 -- src/test/resources/insert_test.db | Bin 12288 -> 12288 bytes 2 files changed, 2 deletions(-) diff --git a/src/main/java/se/kth/ci/CIServer.java b/src/main/java/se/kth/ci/CIServer.java index 593054d..25019c4 100644 --- a/src/main/java/se/kth/ci/CIServer.java +++ b/src/main/java/se/kth/ci/CIServer.java @@ -22,8 +22,6 @@ // Recursive directory deletion import org.apache.commons.io.FileUtils; - - // JSON parsing utilities import org.json.JSONObject; diff --git a/src/test/resources/insert_test.db b/src/test/resources/insert_test.db index 58b3204f35a9491296969a86bd615e00ae1b68b2..7efccfe0f11435eeffc43f94dfce8ddcb360d0f8 100644 GIT binary patch delta 33 hcmZojXh@hKEvUl4z`zW}Oh8&t1-1YH delta 33 hcmZojXh@hKEhxvpz`zW}Oh8&>qK+}6+{T0j`T$;~1*QN1 From ea9e61ea2212c199e01f3aba5008ee78b4730b57 Mon Sep 17 00:00:00 2001 From: Jean Perbet Date: Wed, 14 Feb 2024 09:08:16 +0100 Subject: [PATCH 2/2] issue #25 - feat: new link from / to build history on GET request --- build_history.db | Bin 28672 -> 28672 bytes src/main/java/se/kth/ci/CIServer.java | 30 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/build_history.db b/build_history.db index 8c2018c783656f741d967752e4bee16442a4090a..27e47cca214a29964999ae36b0709c657b7f3048 100644 GIT binary patch delta 134 zcmZp8z}WDBae_3X!bBNoMum+DOX9^iS;ZOnuJW$pspnSY{Kj#by`L?ZReWRNUlx}p zOBptXSmWke1EVyH#H7Szqtw)7L!-1rQ}Z+vgCvubL<t<8 delta 49 zcmZp8z}WDBae_3X{6raNM){2iOX5X1*n%1OuJW$pspnSY{Kj#by`L?3W1%(M=HRro FoB)U!5552Z diff --git a/src/main/java/se/kth/ci/CIServer.java b/src/main/java/se/kth/ci/CIServer.java index 25019c4..0ba2d3e 100644 --- a/src/main/java/se/kth/ci/CIServer.java +++ b/src/main/java/se/kth/ci/CIServer.java @@ -60,6 +60,7 @@ public CIServer(int port, String endpoint, String buildDirectory) { + Build details + + +

CI Server

+ Build History + + + """; + res.type("text/html"); + return html; + }); + // Route for receiving webhooks post(endpoint, (req, res) -> { System.out.println("POST request received.");