Commit Graph

99 Commits

Author SHA1 Message Date
Olivier Lamy f26b9f7c15
issue #3186 add it to override javax.annotation provided by maven core (#3194)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-12-15 12:35:16 +10:00
Olivier Lamy 9ee57192dc
use withMaven junit publisher (#3150)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-11-28 10:12:07 +10:00
Joakim Erdfelt ea315138ab Using new Declarative Jenkinsfile format
+ Ensuring that javadoc and compact3 builds will work in
  isolation to the other stages.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-11-13 07:24:29 -06:00
Joakim Erdfelt 67a6ad47b0 Using new Declarative Jenkinsfile format
+ Makes things easier to maintain.
+ Does not solve for bad "unstable" flagging of multiple
  stages when only one is failing.
  See: https://issues.jenkins-ci.org/browse/JENKINS-39203
  But this Declarative format will help once that bug is fixed.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-11-12 10:12:15 -06:00
Joakim Erdfelt 5a17a33045 Fixed #2458 - Removing jdk9 and jdk10 CI builds
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-11-02 11:34:05 -05:00
Joakim Erdfelt 7b8bda8070 Issue #3051 - New Simplified Jenkinsfile
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-11-01 10:21:52 -05:00
Olivier Lamy 29c51091c7
Jetty 9.4.x simplify jenkinsfile (#2976)
* simplify Jenkinsfile

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* we need checkout scm

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* do not run the first install and move javadoc test to last part

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* remove comments

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-10-11 17:47:52 +10:00
Olivier Lamy 71a1801433
Issue #2918 restore a TestTracker with junit5 (#2927)
* add TestTracker junit5 extension #2918

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-21 14:03:05 +10:00
Joakim Erdfelt a3f1592c50 Issue #2431 - Upgrade to Junit 5 (#2436)
+ Changes needed for new Junit 5
+ Migrating from Vintage junit API to Jupiter junit API
+ Relies on SNAPSHOT jetty-test-helper
  - this will be a formal release once this issue has been
    resolved satisfactory
+ Have jenkins always pull latest SNAPSHOT for each build
+ Adding jetty.snapshots repository
+ Using surefire 2.22.0 per advice from junit
+ Ensuring <reuseForks>true</reuseForks> to work around issue junit-team/junit5#801
+ Disabling <forkMode>always</forkMode> in maven-surefire-plugin
  due to bug https://github.com/junit-team/junit5/issues/801
+ OSGi tests must remain at vintage due to PaxExam
+ Moving from vintage TestingDir to jupiter WorkDir
+ Fixing imports to use jupiter, not vintage
+ Migrating vintage ExpectedException to jupiter assertThrows
+ Migrating vintage TestName to jupiter TestInfo
+ Migrating @RunWith(Parameterized.class)
  to @ParameterizedTest with Argument Sources
+ Migrating assertTrue(val.contains(needle))
  to assertThat(val, containsString(needle))
+ Aligning junit versions per recommendations from @sormuras
+ Adjusting parameter order change for assertEquals()
+ Test LifeCycle Annotation Migration

junit 4      | junit 5 / jupiter
------------ | -----------
@Before      | @BeforeEach
@After       | @AfterEach
@BeforeClass | @BeforeAll
@AfterClass  | @AfterAll

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-05 10:07:17 +10:00
Olivier Lamy 44ace1f8c8
cleanup Jenkinsfile: non needed/unused variable (#2880)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-03 16:19:18 +10:00
Olivier Lamy f4a0bfbdd8
Issue #2746 jmh module (#2750)
#2746 move jmh classes to a dedicated jmh module

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-08-04 14:08:13 +10:00
Olivier Lamy 0ba1d9b5a5
Issue #307 datecache contention (#2725)
* use DateTimeFormatter which is threadsafe so no need of synchronized block  #307

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-07-26 20:46:50 +10:00
Olivier Lamy 9e8743788d
no need of jacoco for other jdk btw jenkins ui do not display jdk label.. (#2673)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-19 09:24:02 +10:00
Olivier Lamy f7df6b3326
increase default build memory (#2669)
increase default build memory
2018-06-15 17:13:05 +10:00
Joakim Erdfelt f9b5949541 Bumping up max MAVEN memory to 2GB
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2018-06-14 08:11:54 -05:00
Joakim Erdfelt ce09e48b5b [WIP] Issue #2597 - Improving UnixSocketTest behavior. (#2635)
* Issue #2597 - Improving UnixSocketTest behavior.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>

jnr doesn't like filename/path with strange character so use a new property for jenkins build with docker

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-07 15:39:56 +10:00
Olivier Lamy 28466efa04
rework maven it test to avoid duplicate class, try to make port file creation atomic (#2607)
* use a single instance of the class TestGetContent.java #2600
* make the jetty.port file creation atomic
* enforce some tests
* ensure we use the correct java home to run invoker plugin, yes this should fail on ci for jdk9+
* use an other maven home for invoker runs
* include failsafe-reports from maven invoker plugin

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-06-05 18:18:42 +10:00
Olivier Lamy 154298af64
run maven it tests as default #2576
* run maven its test per default #2576

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-30 08:33:25 +10:00
olivier lamy a1f5b6523a ooops fix my bad
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-15 10:17:01 +10:00
olivier lamy 7e99e07a5b display mvn stack trace
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-05-15 10:05:38 +10:00
Olivier Lamy d64d0348b7
test some Jenkinsfile changes (#2471)
* maven 3.5

* add surefire timeout to avoid build stuck
2018-04-25 19:29:21 +10:00
Olivier Lamy 571232d4ce
change thread number to test on the build platform 2018-04-22 09:47:28 +10:00
olivier lamy e504085b57 grhhh I missed to get rid of this one...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-21 16:55:18 +10:00
olivier lamy 7912a55dec use variable for this reused value
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-21 10:39:18 +10:00
olivier lamy b261c11920 use a variable for maven tool and use same directory as now local repo is relative
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 17:48:08 +10:00
olivier lamy 43e030b568 using the same for all invocation will work better...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:50:30 +10:00
olivier lamy c910b0e6d5 test new local repository
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:40:05 +10:00
olivier lamy 791d4c7d2c Revert "use an other local repository to try having install plugin stuck..."
This reverts commit ef17962f51.
2018-04-20 16:38:52 +10:00
olivier lamy ef17962f51 use an other local repository to try having install plugin stuck...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-20 16:32:14 +10:00
Olivier Lamy 977fb521a0
add jdk11 in the jdk list (#2438)
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-13 22:25:41 +10:00
olivier lamy cffc2b0c12 use last maven version
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-13 12:48:12 +10:00
olivier lamy e6f02b578a add jdk10 in jenkinsfile
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-04-06 10:38:49 +10:00
Jan Bartel b4e400f236 Jetty 9.4.x 2231 refactor session tests (#2382)
* Issue #2231 WIP

* Issue #2231 Add tests for FileSessionDataStore and MongoSessionDataStore.

* Issue #2231 create unit tests for every SessionDataStore

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Refactor session tests

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Refactor and cleanup session tests.

Signed-off-by: Jan Bartel <janb@webtide.com>

* hazelcast tests faster

Signed-off-by: olivier lamy <olamy@webtide.com>

* make hazelcasts tests even faster

Signed-off-by: olivier lamy <olamy@webtide.com>

* cleanup comments

Signed-off-by: olivier lamy <olamy@webtide.com>

* run mongodb test in embdedded mode

Signed-off-by: olivier lamy <olamy@webtide.com>

* mongodb embedded test enabled per default

Signed-off-by: olivier lamy <olamy@webtide.com>

* Issue #2231 more session tests

Signed-off-by: Jan Bartel <janb@webtide.com>

* fix mongodb embedded tests

Signed-off-by: olivier lamy <olamy@webtide.com>

* cleanup code

Signed-off-by: olivier lamy <olamy@webtide.com>

* use Logger rather than System.err.println

Signed-off-by: olivier lamy <olamy@webtide.com>

* Issue #2231 Add test for DefaultSessionCache

Signed-off-by: Jan Bartel <janb@webtide.com>

* Issue #2231 Redisable mongo tests by default.

Signed-off-by: Jan Bartel <janb@webtide.com>

* fix issue with empty local repo build

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* jenkins should run mongodb tests

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* build this plugin last so we should not hit the maven invoker plugin

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* build test first for this one

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* use invoker plugin 3.0.2-SNAPSHOT as there is a fix for https://issues.apache.org/jira/browse/MINVOKER-191

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>

* temporary use of apache snapshots repository because of maven-invoker-plugin 3.0.2-SNAPSHOT

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-03-28 20:14:15 +10:00
Olivier Lamy 5286fb8081
[WIP] add it test for jspc plugin so we can test it with jdk10 (#2363)
* add it test for jspc plugin so we can test it with jdk10

Signed-off-by: olivier lamy <olamy@webtide.com>

* record maven invoker results

Signed-off-by: olivier lamy <olamy@webtide.com>

* seems to be require as a dependency

Signed-off-by: olivier lamy <olamy@webtide.com>

* no need of install

Signed-off-by: olivier lamy <olamy@webtide.com>

* remove invoker as it do not support well parallel

Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-21 21:11:16 +10:00
olivier lamy 16699214c6 fix using -DskipTests not skipping tests #2359
Signed-off-by: olivier lamy <olamy@webtide.com>

use -DskipTests

Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-20 21:19:02 +10:00
olivier lamy 016df7e15b use settings file which configure using nexus mirror
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-15 15:48:31 +10:00
Olivier Lamy a40b5ccf35 simplify using new syntax (#2286)
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-06 19:09:12 +11:00
Joakim Erdfelt 8728f2b2c7 Marking stages with jdk name too (helping in jenkins UI) 2018-02-28 12:43:03 -06:00
olivier lamy 866461a501 use a separated local maven repo per build and run maven in multi thread surefire configuration improvement
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-27 10:06:52 +10:00
olivier lamy 21053b9813 make it more simple
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 18:02:20 +10:00
olivier lamy 9437732be9 use step declarative
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 16:08:22 +10:00
olivier lamy a34a17bbf2 add jdk and os to stage labels
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-13 14:02:18 +10:00
olivier lamy 5547435e09 add matrix with os
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-04 09:46:53 +10:00
olivier lamy 50910d9437 add matrix with os
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-04 09:45:25 +10:00
olivier lamy d838ee33d7 fix active branch name detection
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-03 20:56:12 +10:00
olivier lamy 6b56136163 fix compact 3 stage syntax
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 18:15:59 +10:00
olivier lamy 3fed7205fd really parallel
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 16:27:43 +10:00
olivier lamy 99fc4ab471 run in parallel
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 14:29:08 +10:00
olivier lamy 5fbea380bf add jdk in mail notif failure
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 12:00:42 +10:00
olivier lamy de91bdeb64 display maven version informations
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-02-01 11:58:54 +10:00