Interview Prep/Jenkins/Multibranch, organization folders & webhooks

How do you use a non-default Jenkinsfile path in a multibranch job?

BeginnerConceptMultibranch, organization folders & webhooks
Answer

Set Build Configuration > Mode: by Jenkinsfile > Script Path to, for example, ci/Jenkinsfile. For monorepos with several pipelines, create one multibranch job per service pointing to services/api/Jenkinsfile, and filter builds with when { changeset 'services/api/**' }, or use a plugin like "Multibranch Pipeline Inline Definition" to define the pipeline centrally.

All Jenkins questions Roadmap: Jenkins

More on Multibranch, organization folders & webhooks