Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2021-03-11T08:05:47.927Z
Answers: 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?
Answers: jesus fernandez
Answers: CC BY-SA 4.0
Answers: 2021-03-12T07:01:58.473Z
Answers: Yes, that's how you should proceed.
Answers: Aditi Sharma
Answers: CC BY-SA 4.0
Answers: 2024-02-05T10:33:57.147Z
Answers: 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.
Answers: Kutzi
Answers: CC BY-SA 4.0
Answers: 2021-03-10T03:48:29.110Z
Answers: 2021-03-10T03:48:29.110Z
Answers: Aditi Sharma
Body: <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>
  
Comments: CC BY-SA 4.0
Comments: 2021-03-10T01:33:09.680Z
Comments: Try running ls after the git checkout to see what files is there. And if Jenkisfile really isnt there.
Comments: Renato Prado
Comments: CC BY-SA 4.0
Comments: 2021-03-10T15:53:38.490Z
Comments: What is your reasoning for having two separate Jenkinsfiles?
Comments: Preston Martin
Tags: <jenkins><jenkins-plugins>
Title: how can I make jenkins find 2 jenkinsfile in a repo with multibranch?
UserDisplayName: jesus fernandez
ThreadText: # 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 @username_0? AFAIK, multiple Jenkinsfiles are still not being supported by Jenkins multibranch pipelines. Would be interested, if you found a workaround.  
  
  ---
  
  