Re: Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-18 Thread Charles Moulliard
On Thu, Dec 17, 2020 at 10:38 AM Yannick Lacaute wrote: > Hi Charles, > > I am working on a pipeline (build java > build docker > deploy pod in > Openshift) and currently I have no unit test. > I think you achieved something huge !! Well done by the way :) > Many thanks. > > Could you please giv

Re: Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-17 Thread Yannick Lacaute
Hi Charles, I am working on a pipeline (build java > build docker > deploy pod in Openshift) and currently I have no unit test. I think you achieved something huge !! Well done by the way :) Could you please give me someone web links or tips in order to do the same as you ? Do you use https://git

Re: Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-17 Thread Charles Moulliard
I created 2 groovy scripts that I execute in a jenkins instance to figure out the list to be used and to be configured within the `build.gradle` file Jenkins.instance.pluginManager.plugins .findAll { !(it.shortName in ['job-dsl', 'structs']) } .collect { "testPlugins '${it.manifest.mainAttribute

Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-16 Thread Charles Moulliard
Hi As a java unit test will need jar files, it is then needed to load them nd to declare them within the pom.xml file or build.gradle file Example: testCompile("org.jenkins-ci.main:jenkins-test-harness:${jenkinsTestHarness}") testCompile("org.jenkins-ci.main:jenkins-war:${jenkinsCore}"