From c4eea91264ca50060bfa54a49c5980c9735af7a4 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Wed, 3 Mar 2021 21:12:34 +0800 Subject: [PATCH 1/5] Add Jenkinsfile --- Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..f9ff883 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +pipeline { + agent { label 'maven-36-jdk11' } + stages { + stage('Prepare') { + steps { + sh 'printenv' + } + } + stage('Build') { + when { + expression { env.CHANGE_ID != null } // Pull request + } + steps { + sh '${M2_HOME}/bin/mvn -B -V clean verify' + } + } + stage('Deploy') { + when { branch 'main' } + steps { + echo "Deploy" + sh '${M2_HOME}/bin/mvn help:effective-settings -B -V clean deploy -e' + } + } + } +} From d19ebe62f28896bfc2715f6752885477f3739116 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Thu, 4 Mar 2021 17:27:24 +0800 Subject: [PATCH 2/5] Fix branch typo in Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f9ff883..e5ff288 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { } } stage('Deploy') { - when { branch 'main' } + when { branch 'master' } steps { echo "Deploy" sh '${M2_HOME}/bin/mvn help:effective-settings -B -V clean deploy -e' @@ -23,3 +23,4 @@ pipeline { } } } + From d28d38e9ad2fe2a3c6fa0c7c8a754d94fd306051 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Thu, 17 Nov 2022 18:35:09 +0800 Subject: [PATCH 3/5] Update javaVersion to 11 --- pom.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ae51ba5..ad6193a 100644 --- a/pom.xml +++ b/pom.xml @@ -40,8 +40,10 @@ Red Hat, Inc. - 1.8 + http://github.com/Commonjava/http-testserver + 11 1.1.2.Final + 1.7.25 From 52c3e2216bae9d7c8c1e4fcabc50ce83d652f1ac Mon Sep 17 00:00:00 2001 From: Gang Li Date: Fri, 22 Sep 2023 11:32:23 +0800 Subject: [PATCH 4/5] Bump undertow to 2.2.26.Final --- .gitignore | 22 ++++++++++++++++++++++ pom.xml | 13 +++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e2018f --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# build +*.tar.gz +dependency-reduced-pom.xml +scratch +target + +# eclipse +.classpath +.project +.settings + +# idea +.idea +*.iml +*.iws +*.ipr + +# mac +*.DS_Store + + +*.dat diff --git a/pom.xml b/pom.xml index ad6193a..3494323 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.commonjava commonjava - 11 + 18 org.commonjava.util @@ -29,7 +29,7 @@ 1.5-SNAPSHOT http-testserver - 2015 + 2015-2022 scm:git:https://github.com/Commonjava/http-testserver.git @@ -42,7 +42,7 @@ Red Hat, Inc. http://github.com/Commonjava/http-testserver 11 - 1.1.2.Final + 2.2.26.Final 1.7.25 @@ -51,7 +51,7 @@ org.commonjava.boms web-commons-bom - 16 + 26 pom import @@ -65,6 +65,11 @@ undertow-servlet ${undertowVersion} + + org.jboss.logging + jboss-logging + 3.4.0.Final + From dbc1b0831f6da2d92da13ee4591235812b6da582 Mon Sep 17 00:00:00 2001 From: Gang Li Date: Fri, 22 Sep 2023 15:10:28 +0800 Subject: [PATCH 5/5] Update license header --- pom.xml | 2 +- src/main/java/org/commonjava/test/http/TestHttpServer.java | 2 +- src/main/java/org/commonjava/test/http/common/CommonMethod.java | 2 +- .../java/org/commonjava/test/http/common/HttpServerFixture.java | 2 +- .../java/org/commonjava/test/http/expect/ContentResponse.java | 2 +- .../org/commonjava/test/http/expect/ExpectationHandler.java | 2 +- .../java/org/commonjava/test/http/expect/ExpectationServer.java | 2 +- .../org/commonjava/test/http/expect/ExpectationServlet.java | 2 +- src/main/java/org/commonjava/test/http/stream/FileResolver.java | 2 +- .../java/org/commonjava/test/http/stream/JarFileResolver.java | 2 +- .../java/org/commonjava/test/http/stream/StreamResolver.java | 2 +- src/main/java/org/commonjava/test/http/stream/StreamServer.java | 2 +- .../java/org/commonjava/test/http/stream/StreamServlet.java | 2 +- src/main/java/org/commonjava/test/http/util/PortFinder.java | 2 +- src/main/java/org/commonjava/test/http/util/StreamUtils.java | 2 +- src/main/java/org/commonjava/test/http/util/UrlUtils.java | 2 +- src/test/java/org/commonjava/test/http/TestHttpServerTest.java | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 3494323..ba0a976 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@