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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Sowlène
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 :)


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b4dfa228-3367-4b8f-b731-ca45acda1ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Sowlène
If my question isn't understandable, don't hesitate to ask me questions :) I need this answer :)

Le lundi 28 août 2017 14:08:02 UTC+2, Sowlène a écrit :
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 :)


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b1682e99-2f37-4a6a-b4c9-85879230f3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Ian Smith
In reply to this post by Sowlène
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
- https://jakubstas.com/github-and-jenkins-integration/#.WbD-ETCGPRY
- https://www.theguild.nl/building-github-pull-requests-using-jenkins-pipelines/

Kind regards, Ian

On Monday, August 28, 2017 at 1:08:02 PM UTC+1, Sowlène wrote:
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 :)


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/44a6979b-d6d8-40f5-aa9e-703e049a1df4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Sowlène
Hi Ian,

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

Sowlene.

Le jeudi 7 septembre 2017 10:26:08 UTC+2, Ian Smith a écrit :
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
- <a href="https://jakubstas.com/github-and-jenkins-integration/#.WbD-ETCGPRY" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjakubstas.com%2Fgithub-and-jenkins-integration%2F%23.WbD-ETCGPRY\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqXRYHt8bMHSK3ir-VEnbsgEhKGw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fjakubstas.com%2Fgithub-and-jenkins-integration%2F%23.WbD-ETCGPRY\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHqXRYHt8bMHSK3ir-VEnbsgEhKGw&#39;;return true;">https://jakubstas.com/github-and-jenkins-integration/#.WbD-ETCGPRY
- <a href="https://www.theguild.nl/building-github-pull-requests-using-jenkins-pipelines/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.theguild.nl%2Fbuilding-github-pull-requests-using-jenkins-pipelines%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ1a2_UJSZGW5gLfa79fdD7MmVXw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.theguild.nl%2Fbuilding-github-pull-requests-using-jenkins-pipelines%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJ1a2_UJSZGW5gLfa79fdD7MmVXw&#39;;return true;">https://www.theguild.nl/building-github-pull-requests-using-jenkins-pipelines/

Kind regards, Ian

On Monday, August 28, 2017 at 1:08:02 PM UTC+1, Sowlène wrote:
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 :)


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9a8743c0-4b43-4448-9dc9-6f129d74ef45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

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

Brian Colfer
You could have multiple pipeline jobs applied to the same repository.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4396cfb3-4339-42dc-a241-63b3702c92b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.