I am quite new to DevOps and Jenkins in particular. I have played around and created some pipelines jobs. I wanted now to start practicing with a jenkins in local, and apply CI-CD to an small project I had. I have created a multibranch pipeline. which will have 3 repos (front, back, integration). The first 2 repos have 2 jenkinsfile each in the root folder (Jenkinsfile.ci and Jenkinsfile.cd) but when I scan the multibranch pipeline it says no Jenkinsfile has been found. How would be the right way to do this?

  • Try running ls after the git checkout to see what files is there. And if Jenkisfile really isnt there. Commented Mar 10, 2021 at 1:33
  • 1
    What is your reasoning for having two separate Jenkinsfiles?
    – Preston Martin
    Commented Mar 10, 2021 at 15:53

1 Answer 1


You need to update your multibranch pipeline build configuration to use Jenkinsfile.ci and Jenkinsfile.cd instead of Jenkinsfile. And you would have to create two multibranch pipelines, one for Jenkinsfile.ci and other for running Jenkinsfile.cd.

  • thanks for the answer, so I would then create one MB pipeline for the Jenkinsfile.ci (both front and back) and another MB pipeline for the Jenkinsfile.cd (front and back) is that correct? Commented Mar 11, 2021 at 8:05
  • Yes, that's how you should proceed. Commented Mar 12, 2021 at 7:01
  • Have you actually been able to make it working like this @jesusfernandez? AFAIK, multiple Jenkinsfiles are still not being supported by Jenkins multibranch pipelines. Would be interested, if you found a workaround.
    – Kutzi
    Commented Feb 5 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.