I have a SpringBoot API application which is configured in a Jenkins pipeline for CI/CD. The process is defined using a Jenkinsfile which currently resides in the root of the source repo. Now there's a requirment to move this Jenkinsfile to ta separate repo from the source repo. Here is an image of the current settings of my pipeline's SCM and Build Configurations.
Note that the Mode dropdown list of the Build Configuration provide only "by Jenkinsfile" option. How can I achieve this? Any answers, ideas or suggestions would be highly appreciated.
Please note that I'm new to Jenkins configurations. Hence, much appreciate if someone can help with code snippet or a gist with examples.
Thanks

You can set the Repository URL for
JenkinsfileunderAdvanced Project Options -> Pipeline -> Definition -> SCM -> Repositories -> Repository URL. You can specify a different repository here.