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.
More on Multibranch, organization folders & webhooks
How does a multibranch pipeline work?BeginnerWhat is branch indexing and what triggers it?BeginnerWhat are the discovery traits in the GitHub branch source?IntermediateWhat does the fork PR trust setting protect against?AdvancedWhat environment variables are set for PR builds?BeginnerWhat is an organization folder?Intermediate