Is it possible to apply several pipeline to one github repository ?

41 views
Skip to first unread message

Sowlène

unread,
Aug 28, 2017, 8:08:02 AM8/28/17
to Jenkins Users
Hi there !

I've just one question for you  : 

Is it possible to apply several pipeline to one github repository ?

If yes, someone can help me with tutorial our documents or other things ?

I've tryed to do this with the BlueOcean plugin but this seems impossible ...

I would like to apply 6 pipepline on one github repository triggerd by events so this question is essential to me !

Thank's :)


Sowlène

unread,
Aug 28, 2017, 9:18:33 AM8/28/17
to Jenkins Users
If my question isn't understandable, don't hesitate to ask me questions :) I need this answer :)

Ian Smith

unread,
Sep 7, 2017, 4:26:08 AM9/7/17
to Jenkins Users
Hi,

I think I can give you part of a reply. Since Pipeline:Multibranch plugin version 2.15, you can define a "Jenkinsfile" with different names. Therefore you can define multiple multibranch pipelines to the same repo and define a different "Jenkinsfile" to define a different pipeline.

However you will then hit the issue I'm seeing in that the mapping between github hook and Jenkins pipeline appears to be 1:1 not 1:n. So I have two pipelines, correctly triggered, but if one pipeline fails and the other succeeds, it depends on which one finished last as to how the status on the PR in github is shown. BTW I'm using Jenkins 2.63 with the normal interface not Blue Ocean, but I think the setup should be the same.

Some links that may be of use

Kind regards, Ian

Sowlène

unread,
Sep 11, 2017, 10:55:29 AM9/11/17
to Jenkins Users
Hi Ian,

Thank for your answer ! I will read carefully what is in links !

Sowlene.

Brian Colfer

unread,
Sep 12, 2017, 10:46:55 PM9/12/17
to Jenkins Users
You could have multiple pipeline jobs applied to the same repository.
Reply all
Reply to author
Forward
0 new messages