Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46251

Need to get Jenkinsfiles which can use more than 1 project in the same repo

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major Major
    • pipeline
    • None

      I would like to request (if you don't have the feature yet) to have the way for adding more than 1 Jenkinsfile in case there are more than 1 project in the same repo. Or what is the best approach in this case. 

      Currently, I need to add script in Jenkins configure instead of using a Jenkins file. In addition, this way (still waiting for Read & Write GitHub Enterprise) I cannot connect to GitHub Enterprise with the current release of Blue Ocean. Moreover, the size that I can add in script in Jenkins configure is pretty short.

      In conclusion, only 1 Jenkinsfile allow + limit of Jenkins pipeline script size are limit to work with if the repo has multiple projects.

      Could you please have a new feature to support these cases or guide me what the best approach of Blue Ocean that I can do.  Thank you in advance.

          [JENKINS-46251] Need to get Jenkinsfiles which can use more than 1 project in the same repo

          Oleg Nenashev added a comment -

          comscience15 if you use common "Pipeline" job type, you can specify a custom name of Jenkinsfile in advanced settings of the SCM Source. CC abayer svanoort 

          Regarding GitHub Enterprise, please feel free to vote for the existing ticket: JENKINS-40855 . It is ready for release, to be shipped in 1.2.

          Oleg Nenashev added a comment - comscience15 if you use common "Pipeline" job type, you can specify a custom name of Jenkinsfile in advanced settings of the SCM Source. CC abayer svanoort   Regarding GitHub Enterprise, please feel free to vote for the existing ticket: JENKINS-40855 . It is ready for release, to be shipped in 1.2.

          Nat Sr added a comment -

          similar scenario of  Rob Coward https://issues.jenkins-ci.org/browse/JENKINS-43749

          /MainRepo
          /MainRepo/ProjectA
          /MainRepo/ProjectB
          /MainRepo/ProjectC
          /MainRepo/ProjectD
          /MainRepo/ProjectE
          /MainRepo/ProjectF

          Nat Sr added a comment - similar scenario of  Rob Coward https://issues.jenkins-ci.org/browse/JENKINS-43749 /MainRepo /MainRepo/ProjectA /MainRepo/ProjectB /MainRepo/ProjectC /MainRepo/ProjectD /MainRepo/ProjectE /MainRepo/ProjectF

          Nat Sr added a comment - - edited

          oleg_nenashev Which one did you refer to? I attached a screenshot on configure page. Could you please guiding me? Select "Pipeline script from SCM" doesn't have the option to add custom jenkinsfile. Thank you

          For GitHub Enterprise, yes I followed that and has been waiting for the release. I look at the roadmap . It has been showing Release Soon for a while. Do you know when it will be officially released?

          Nat Sr added a comment - - edited oleg_nenashev Which one did you refer to? I attached a screenshot on configure page. Could you please guiding me? Select "Pipeline script from SCM" doesn't have the option to add custom jenkinsfile. Thank you For GitHub Enterprise, yes I followed that and has been waiting for the release. I look at the roadmap . It has been showing Release Soon for a while. Do you know when it will be officially released?

          Oleg Nenashev added a comment -

          I don't. Please reach out to jamesdumay and michaelneale in Jenkins IRC or in https://gitter.im/jenkinsci/blueocean-plugin

          Oleg Nenashev added a comment - I don't. Please reach out to jamesdumay and michaelneale in Jenkins IRC or in https://gitter.im/jenkinsci/blueocean-plugin

          Michael Neale added a comment -

          comscience15 it is out in beta - expect a GA next week!

          Michael Neale added a comment - comscience15 it is out in beta - expect a GA next week!

          James Dumay added a comment -

          The good news is that we want to solve this problem and its already covered in JENKINS-43749.

          James Dumay added a comment - The good news is that we want to solve this problem and its already covered in JENKINS-43749 .

          Nat Sr added a comment -

          jamesdumay Woot! Woot!  thank you very much. I will look forward to see it working

          Nat Sr added a comment - jamesdumay Woot! Woot!  thank you very much. I will look forward to see it working

            oleg_nenashev Oleg Nenashev
            comscience15 Nat Sr
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: