I have a main repository with a submodule which contains the Jenkinsfile . With this I want create a multibranch pipeline job for that main repository. But it's not working. It works when the Jenkinsfile is not in the submodule but it doesn't detect the branches when Jenkinsfile its on the submodule.
How can I get the branches be detected when the Jenkinsfile is placed on a submodule?