Interview Prep/Jenkins/SCM, multibranch & webhooks

Branch jobs disappear unexpectedly after a scan

IntermediateTroubleshootingSCM, multibranch & webhooks
Answer

Likely causes → The orphaned item strategy removed them because the scan temporarily failed to list branches (expired credential, API outage) or a filter change excluded them.

Diagnose → Scan log for errors and Will remove ... lines; check credential validity.

Fix → Fix the credential/filter and re-scan; restored branches recreate jobs, but build history of deleted jobs is gone unless restored from backup.

Prevent → Abort scans on errors (default behaviour for most sources), keep backups, monitor credential expiry.

All Jenkins questions Roadmap: Jenkins

More on SCM, multibranch & webhooks