This is very simple, here [1] is an example how to prepare a build using Docker image (you must just select one with a proper Maven version). Then you must create a Multibranch Pipeline build and point to a repo where your Jenkinsfile is. Here [2] is an example configuration - I'm also using it to built PRs from Github that's why there is the second Branch Sources configuration.
[1] https://github.com/apache/struts/blob/master/Jenkinsfile [2] https://builds.apache.org/view/S-Z/view/Struts/job/Apache%20Struts/configure Regards Łukasz W dniu wt., 8.10.2019 o 18:16 Tilman Hausherr <[email protected]> napisał(a): > Am 08.10.2019 um 16:27 schrieb Bertrand Delacretaz: > > Hi, > > > > On Mon, Oct 7, 2019 at 9:59 PM Tilman Hausherr <[email protected]> > wrote: > >> ...This is sad... I have a maven build... > >> that runs on jdk8 but uses jdk6 javac (with fork) and it works with > >> 3.5.2, 3.5.0 and 3.2.1 only... > > Note that some build hosts allow you to run Docker-based builds - the > > "ubuntu" hosts AFAIK, not sure about others (and not sure where to > > find that info). > > > > https://github.com/apache/sling-org-apache-sling-commons-clam does > > that (via https://www.testcontainers.org/), its build job is defined > > at > https://builds.apache.org/job/Sling/job/sling-org-apache-sling-commons-clam/ > > > > -Bertrand > > > Sorry, that sounds like overkill, and I would have to learn using docker > too. > > Tilman > > >
