Use jenkinsfile from "multi-configuration project"

453 views
Skip to first unread message

Jesús Linares

unread,
Nov 4, 2016, 3:37:51 PM11/4/16
to Jenkins Users
Hi,

is it possible to select a jenkinfile in a multi-configuration project?.

Thanks.

Baptiste Mathus

unread,
Nov 6, 2016, 2:24:09 AM11/6/16
to jenkins...@googlegroups.com

IIUC your question, no.

Cheers


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a2d24b19-cb87-4175-8d7c-a8bd8eef0a69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jesús Linares

unread,
Nov 7, 2016, 5:38:41 AM11/7/16
to Jenkins Users, m...@batmat.net
Hi,

I have a repository with a jenkinsfile and I need to execute it in several linux distributions like Debian, Ubuntu and so on. From Pipeline project I can't use several slaves (a slave for each linux distribution) so I thought the proper project for my goal was Multi-configuration project but it seems that it is impossible to select a jenkinsfile in this kind of project. Is there other way to execute the jenkinsfile in several linux distributions?.

Thanks.


El domingo, 6 de noviembre de 2016, 8:24:09 (UTC+1), Baptiste Mathus escribió:

IIUC your question, no.

Cheers

Le 4 nov. 2016 8:38 PM, "Jesús Linares" <jesusli...@gmail.com> a écrit :
Hi,

is it possible to select a jenkinfile in a multi-configuration project?.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Björn Pedersen

unread,
Nov 7, 2016, 7:04:54 AM11/7/16
to Jenkins Users, m...@batmat.net


Am Montag, 7. November 2016 11:38:41 UTC+1 schrieb Jesús Linares:
Hi,

I have a repository with a jenkinsfile and I need to execute it in several linux distributions like Debian, Ubuntu and so on. From Pipeline project I can't use several slaves (a slave for each linux distribution) so I thought the proper project for my goal was Multi-configuration project but it seems that it is impossible to select a jenkinsfile in this kind of project. Is there other way to execute the jenkinsfile in several linux distributions?.

Thanks.


Hi,
you can use several slaves from Pipeline quite easy:

 parallel 'host1 {
    node('label1') { .... }
 }, 'host2' {
   node('label2') { .... }
}

If you need to find more info, see https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples/parallel-multiple-nodes

Björn

Jesús Linares

unread,
Nov 7, 2016, 10:32:23 AM11/7/16
to Jenkins Users, m...@batmat.net
I think is what I need. I don't know why I can select it in "multi configuration project". Anyway, I will try it in a Pipeline project.

Thanks a lot.
Regards.

Baptiste Mathus

unread,
Nov 7, 2016, 6:12:10 PM11/7/16
to jenkins...@googlegroups.com

Because matrix builds are an old beast. Like an enhanced freestyle job if you will.

Pipelines lets you (any) things in parallel  easily.


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6da8f590-1c19-4d9d-8f44-31d4008c473a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages