Multi-branch configuration with externally-defined Jenkinsfile
问题 I have an open-source project, that resides in GitHub and is built using a build farm, controlled by Jenkins. I want to build it branch-wise using a pipeline, but I don't want to store Jenkinsfile inside the code. Is there a way to accomplish this? 回答1: First of all, why do you not want a Jenkinsfile in your code? The pipeline is just as much part of the code as would be your build file. Other then that, you can load groovy files to be evaluated as a pipeline script. You can do this either