Interview Prep/Jenkins/Multibranch, organization folders & webhooks

What happens when a Jenkinsfile is removed from a branch?

BeginnerConceptMultibranch, organization folders & webhooks
Answer

On the next indexing, the branch no longer meets the criteria (log line: ‘Jenkinsfile’ not found and Does not meet criteria), so the branch job is treated as orphaned and removed or disabled according to the orphaned item strategy. If you only want to stop builds temporarily, disable the branch job or add a condition rather than deleting the file.

All Jenkins questions Roadmap: Jenkins

More on Multibranch, organization folders & webhooks