Am 09.10.2019 um 07:23 schrieb Łukasz Lenart:
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
Thanks, but I doubt that it will be simple... I assume that in your
configuration, "maven:3-jdk-8" is a reference to the image that will be
chosen. Is there a repository for this or will this be created
"magically" just by using the correct name, e.g. "maven:3.2.1-jdk-6"? I
searched for your image name and found this:
https://github.com/docker-library/repo-info/tree/master/repos/maven/remote
however it does not have jdk-6. Same on https://hub.docker.com/_/maven
And if I have the image I need, where in the docker image will I find
the jdk? On Jenkins the jdk is at
/home/jenkins/tools/java/jdk1.6.0_20-32-unlimited-security
In the meantime, I configured a build on a *windows* build node
(hopefully I didn't pee into somebody's sandbox by doing that), but it
also failed. At home it works with every maven version. I'vev spent
hours on this... so my preferred plans would to do nothing, and to run
the jdk6 build before release just to be sure we didn't break anything.
Tilman
Regards
Łukasz
W dniu wt., 8.10.2019 o 18:16 Tilman Hausherr <thaush...@t-online.de>
napisał(a):
Am 08.10.2019 um 16:27 schrieb Bertrand Delacretaz:
Hi,
On Mon, Oct 7, 2019 at 9:59 PM Tilman Hausherr <thaush...@t-online.de>
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