Fixing Jenkins "401 Unauthorized" After Bitbucket Deprecated App Passwords
Bitbucket Cloud retired app passwords in favour of scoped API tokens. If a Jenkins multibranch pipeline authenticates to Bitbucket with an app password, it doesn’t fail loudly the day the deprecation lands - it fails quietly, and only in specific spots, which makes it confusing to diagnose. This is the exact failure, why it shows up where it does, and the fix. Problem A multibranch pipeline job that had been running fine for months suddenly failed on a manual “Build Now”: ...