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

CC BY-SA 4.0
2021-03-11T08:05:47.927Z
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?
jesus fernandez
CC BY-SA 4.0
2021-03-12T07:01:58.473Z
Yes, that's how you should proceed.
Aditi Sharma
CC BY-SA 4.0
2024-02-05T10:33:57.147Z
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
CC BY-SA 4.0
2021-03-10T03:48:29.110Z
2021-03-10T03:48:29.110Z
Aditi Sharma
<p>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?</p>

CC BY-SA 4.0
2021-03-10T01:33:09.680Z
Try running ls after the git checkout to see what files is there. And if Jenkisfile really isnt there.
Renato Prado
CC BY-SA 4.0
2021-03-10T15:53:38.490Z
What is your reasoning for having two separate Jenkinsfiles?
Preston Martin
<jenkins><jenkins-plugins>
how can I make jenkins find 2 jenkinsfile in a repo with multibranch?
jesus fernandez
# how can I make jenkins find 2 jenkinsfile in a repo with multibranch?

(Asked by: username_0 on 2021-03-09)

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?

**Tags:** jenkins, jenkins-plugins

> **Comments:**
> **username_1**: Try running ls after the git checkout to see what files is there. And if Jenkisfile really isnt there.  
> **username_2**: What is your reasoning for having two separate Jenkinsfiles?  

---

## 1 answers

### Answer by username_3 on 2021-03-10. Score: 4 | Accepted answer

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.

> **Comments:**
> **username_0**: 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?  
> **username_3**: Yes, that's how you should proceed.  
> **username_4**: 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.  

---

