0

I would ask you a question about Jenkins :

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 !

2
  • You should show what have you done so far? Aug 28, 2017 at 12:24
  • I've got my github repo with 2 folder: Dev and Prod, 1 jenkinsfile (which contain one pipeline this pipeline execute some tests on Dev). I don't know what i can add to say :/
    – user8512292
    Aug 28, 2017 at 12:31

2 Answers 2

0

When you create a job on Jenkins you bind it to a repo.

If you create two jobs and bind them both to the same repo they will both be triggered when you push to your repo. Then you attach your pipelines to these jobs.

1
  • Thank you for this answer, i will try this way !
    – user8512292
    Aug 28, 2017 at 14:14
0

You can create pipeline jobs pointing at different build scripts (ie, filenames other than /Jenkinsfile) in the repo or different branches just fine. I do it all the time.

However, be aware that any scm polling you do on the repo/branch could prevent other jobs from identifying changes depending on how you are triggering them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy