1

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?

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

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.

2
  • 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? Mar 11 at 8:05
  • Yes, that's how you should proceed. Mar 12 at 7:01

Your Answer

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

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