Combine a multi-branch, and a multi-configuration project

53 views
Skip to first unread message

Jochen Wiedmann

unread,
Nov 14, 2023, 9:26:38 AM11/14/23
to Jenkins Users

Hi,

is it possible to combine multi-branch pipeline, and a multi-config project?

Or, in other words: I have a multi-branch pipeline project, which uses a fixed JDK, and a fixed Maven version. What I would like to have, would be a matrix of builds for every branch with different JDK's, and Maven versions.

Thanks,

Jochen

Mark Waite

unread,
Nov 14, 2023, 11:09:42 AM11/14/23
to Jenkins Users
How about a matrix build with declarative Pipeline as described in https://www.jenkins.io/blog/2019/11/22/welcome-to-the-matrix/

If you use scripted Pipeline, then you could consider a matrix build with scripted Pipeline as described in https://www.jenkins.io/blog/2019/12/02/matrix-building-with-scripted-pipeline/

Darin Pope created a video that illustrates the ideas in https://www.youtube.com/watch?v=HsvO2nDlDSI

Mark Waite

Jochen Wiedmann

unread,
Nov 15, 2023, 4:58:10 PM11/15/23
to Jenkins Users
Thanks, Mark,

The scripted pipeline approach sounds fine for me.

Jochen
Reply all
Reply to author
Forward
0 new messages