You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by Dennis Kieselhorst <de...@apache.org> on 2020/07/22 11:49:08 UTC
Multibranch build config with different JDK versions
Hi,
for Apache CXF we currently have multiple build jobs per branch and JDK version, e.g.
- Master-JDK8
- Master-JDK11
- Master-JDK-latest
- 3.3-JDK8
- 3.3-JDK11
- 3.3-JDK-latest
As we have an increasing number of Java versions that we support, I thought about simplying this with the move to the new Jenkins instance. My idea is to just have one multibranch job that kicks off individual concurrent builds with the different JDK configs.
Has somebody already done it so that I can adapt that or experiences to share before I start building that?
Best,
Dennis
Re: Multibranch build config with different JDK versions
Posted by Andor Molnar <an...@apache.org>.
Found it.
I added ‘Build regular branches when change is detected’ globally and will see how it goes.
Though it doesn’t explain for me why branches other than ‘master’ behave correctly and only master not.
Andor
> On 2020. Jul 27., at 11:37, Andor Molnar <an...@apache.org> wrote:
>
> Hi Gav,
>
> Sorry I cannot decrypt your message. :(
> Where can I find ‘Build Strategies’ section in a multi-branch setup?
>
> Andor
>
>
>
>> On 2020. Jul 26., at 13:11, Gavin McDonald <gm...@apache.org> wrote:
>>
>> Hi ,
>>
>> On Sun, Jul 26, 2020 at 12:17 PM Andor Molnar <an...@apache.org> wrote:
>>
>>> Hi,
>>>
>>> I’ve just set up the same config for ZooKeeper: multibranch pipeline with
>>> different JDK versions:
>>>
>>>
>>> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-master-maven-multipipeline/
>>>
>>> It works fine except that PollSCM trigger is crazy on master branch: it
>>> triggers a new build every hour regardless of whether changes are present
>>> on the branch or not.
>>>
>>> Looks like it’s a known Jenkins issue, but I haven’t found resolution yet.
>>>
>>
>> Might be worth investigating the 'Build Strategies' section in your config
>>
>> Gav...
>>
>>
>>>
>>> Andor
>>>
>>>
>>>
>>>
>>>> On 2020. Jul 22., at 16:08, Matt Sicker <bo...@gmail.com> wrote:
>>>>
>>>> https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix
>>>>
>>>> This is a fairly recent feature (like within the past year) which
>>>> makes it super easy to write a pipeline across multiple testing axes.
>>>>
>>>> On Wed, 22 Jul 2020 at 07:40, Dennis Kieselhorst <de...@apache.org>
>>> wrote:
>>>>>
>>>>>> At Struts project I developed something like this, this runs
>>>>>> sequentially (not sure why but there was a reason) and also supports
>>>>>> PRs (but that needs a dedicated Github user with access to ASF)
>>>>>>
>>>>>> https://github.com/apache/struts/blob/master/Jenkinsfile
>>>>>
>>>>> Thanks Łukasz, that's what I was looking for. If you add parallel as
>>> described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I
>>> would assume that they no longer run sequentially.
>>>>>
>>>>> Best,
>>>>> Dennis
>>>>
>>>>
>>>>
>>>> --
>>>> Matt Sicker <bo...@gmail.com>
>>>
>>>
>>
>> --
>>
>> *Gavin McDonald*
>> Systems Administrator
>> ASF Infrastructure Team
>
Re: Multibranch build config with different JDK versions
Posted by Andor Molnar <an...@apache.org>.
Hi Gav,
Sorry I cannot decrypt your message. :(
Where can I find ‘Build Strategies’ section in a multi-branch setup?
Andor
> On 2020. Jul 26., at 13:11, Gavin McDonald <gm...@apache.org> wrote:
>
> Hi ,
>
> On Sun, Jul 26, 2020 at 12:17 PM Andor Molnar <an...@apache.org> wrote:
>
>> Hi,
>>
>> I’ve just set up the same config for ZooKeeper: multibranch pipeline with
>> different JDK versions:
>>
>>
>> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-master-maven-multipipeline/
>>
>> It works fine except that PollSCM trigger is crazy on master branch: it
>> triggers a new build every hour regardless of whether changes are present
>> on the branch or not.
>>
>> Looks like it’s a known Jenkins issue, but I haven’t found resolution yet.
>>
>
> Might be worth investigating the 'Build Strategies' section in your config
>
> Gav...
>
>
>>
>> Andor
>>
>>
>>
>>
>>> On 2020. Jul 22., at 16:08, Matt Sicker <bo...@gmail.com> wrote:
>>>
>>> https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix
>>>
>>> This is a fairly recent feature (like within the past year) which
>>> makes it super easy to write a pipeline across multiple testing axes.
>>>
>>> On Wed, 22 Jul 2020 at 07:40, Dennis Kieselhorst <de...@apache.org>
>> wrote:
>>>>
>>>>> At Struts project I developed something like this, this runs
>>>>> sequentially (not sure why but there was a reason) and also supports
>>>>> PRs (but that needs a dedicated Github user with access to ASF)
>>>>>
>>>>> https://github.com/apache/struts/blob/master/Jenkinsfile
>>>>
>>>> Thanks Łukasz, that's what I was looking for. If you add parallel as
>> described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I
>> would assume that they no longer run sequentially.
>>>>
>>>> Best,
>>>> Dennis
>>>
>>>
>>>
>>> --
>>> Matt Sicker <bo...@gmail.com>
>>
>>
>
> --
>
> *Gavin McDonald*
> Systems Administrator
> ASF Infrastructure Team
Re: Multibranch build config with different JDK versions
Posted by Gavin McDonald <gm...@apache.org>.
Hi ,
On Sun, Jul 26, 2020 at 12:17 PM Andor Molnar <an...@apache.org> wrote:
> Hi,
>
> I’ve just set up the same config for ZooKeeper: multibranch pipeline with
> different JDK versions:
>
>
> https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-master-maven-multipipeline/
>
> It works fine except that PollSCM trigger is crazy on master branch: it
> triggers a new build every hour regardless of whether changes are present
> on the branch or not.
>
> Looks like it’s a known Jenkins issue, but I haven’t found resolution yet.
>
Might be worth investigating the 'Build Strategies' section in your config
Gav...
>
> Andor
>
>
>
>
> > On 2020. Jul 22., at 16:08, Matt Sicker <bo...@gmail.com> wrote:
> >
> > https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix
> >
> > This is a fairly recent feature (like within the past year) which
> > makes it super easy to write a pipeline across multiple testing axes.
> >
> > On Wed, 22 Jul 2020 at 07:40, Dennis Kieselhorst <de...@apache.org>
> wrote:
> >>
> >>> At Struts project I developed something like this, this runs
> >>> sequentially (not sure why but there was a reason) and also supports
> >>> PRs (but that needs a dedicated Github user with access to ASF)
> >>>
> >>> https://github.com/apache/struts/blob/master/Jenkinsfile
> >>
> >> Thanks Łukasz, that's what I was looking for. If you add parallel as
> described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I
> would assume that they no longer run sequentially.
> >>
> >> Best,
> >> Dennis
> >
> >
> >
> > --
> > Matt Sicker <bo...@gmail.com>
>
>
--
*Gavin McDonald*
Systems Administrator
ASF Infrastructure Team
Re: Multibranch build config with different JDK versions
Posted by Andor Molnar <an...@apache.org>.
Hi,
I’ve just set up the same config for ZooKeeper: multibranch pipeline with different JDK versions:
https://ci-hadoop.apache.org/view/ZooKeeper/job/zookeeper-master-maven-multipipeline/
It works fine except that PollSCM trigger is crazy on master branch: it triggers a new build every hour regardless of whether changes are present on the branch or not.
Looks like it’s a known Jenkins issue, but I haven’t found resolution yet.
Andor
> On 2020. Jul 22., at 16:08, Matt Sicker <bo...@gmail.com> wrote:
>
> https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix
>
> This is a fairly recent feature (like within the past year) which
> makes it super easy to write a pipeline across multiple testing axes.
>
> On Wed, 22 Jul 2020 at 07:40, Dennis Kieselhorst <de...@apache.org> wrote:
>>
>>> At Struts project I developed something like this, this runs
>>> sequentially (not sure why but there was a reason) and also supports
>>> PRs (but that needs a dedicated Github user with access to ASF)
>>>
>>> https://github.com/apache/struts/blob/master/Jenkinsfile
>>
>> Thanks Łukasz, that's what I was looking for. If you add parallel as described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I would assume that they no longer run sequentially.
>>
>> Best,
>> Dennis
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
Re: Multibranch build config with different JDK versions
Posted by Matt Sicker <bo...@gmail.com>.
https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix
This is a fairly recent feature (like within the past year) which
makes it super easy to write a pipeline across multiple testing axes.
On Wed, 22 Jul 2020 at 07:40, Dennis Kieselhorst <de...@apache.org> wrote:
>
> > At Struts project I developed something like this, this runs
> > sequentially (not sure why but there was a reason) and also supports
> > PRs (but that needs a dedicated Github user with access to ASF)
> >
> > https://github.com/apache/struts/blob/master/Jenkinsfile
>
> Thanks Łukasz, that's what I was looking for. If you add parallel as described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I would assume that they no longer run sequentially.
>
> Best,
> Dennis
--
Matt Sicker <bo...@gmail.com>
Re: Multibranch build config with different JDK versions
Posted by Dennis Kieselhorst <de...@apache.org>.
> At Struts project I developed something like this, this runs
> sequentially (not sure why but there was a reason) and also supports
> PRs (but that needs a dedicated Github user with access to ASF)
>
> https://github.com/apache/struts/blob/master/Jenkinsfile
Thanks Łukasz, that's what I was looking for. If you add parallel as described in https://www.jenkins.io/blog/2017/09/25/declarative-1/ I would assume that they no longer run sequentially.
Best,
Dennis
Re: Multibranch build config with different JDK versions
Posted by Lukasz Lenart <lu...@apache.org>.
śr., 22 lip 2020 o 13:49 Dennis Kieselhorst <de...@apache.org> napisał(a):
> Has somebody already done it so that I can adapt that or experiences to share before I start building that?
At Struts project I developed something like this, this runs
sequentially (not sure why but there was a reason) and also supports
PRs (but that needs a dedicated Github user with access to ASF)
https://github.com/apache/struts/blob/master/Jenkinsfile
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Re: Multibranch build config with different JDK versions
Posted by Thomas Bouron <th...@cloudsoft.io>.
At Brooklyn, we don't do multiple builds with different Java versions yet.
But that's something and wanted to implement to test compatibility.
Our build is a multibranch project using a combination of pipelines and
docker containers. With this setup, it would be very easy to add a parallel
step to launch different docker containers to build with different
Java/maven versions. The great benefit of this solution is that you can do
this for all branches within your project.
Hope that helps.
Best.
On Wed, 22 Jul 2020, 12:49 Dennis Kieselhorst, <de...@apache.org> wrote:
> Hi,
>
> for Apache CXF we currently have multiple build jobs per branch and JDK
> version, e.g.
>
> - Master-JDK8
> - Master-JDK11
> - Master-JDK-latest
> - 3.3-JDK8
> - 3.3-JDK11
> - 3.3-JDK-latest
>
> As we have an increasing number of Java versions that we support, I
> thought about simplying this with the move to the new Jenkins instance. My
> idea is to just have one multibranch job that kicks off individual
> concurrent builds with the different JDK configs.
>
> Has somebody already done it so that I can adapt that or experiences to
> share before I start building that?
>
> Best,
> Dennis
>