how can I make jenkins find 2 jenkinsfile in a repo with multibranch?

HOW TO -️ October 18, 2021

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?

Answer

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

Initializing...