diff --git a/lib/modules/platform/bitbucket-server/index.ts b/lib/modules/platform/bitbucket-server/index.ts index b3e574dc7fedfe34dfd4f3a52a26294661853785..acdc8bd71fce18bcfbac9ee1dfd88021e771b403 100644 --- a/lib/modules/platform/bitbucket-server/index.ts +++ b/lib/modules/platform/bitbucket-server/index.ts @@ -81,14 +81,13 @@ export function initPlatform({ endpoint, username, password, - token, }: PlatformParams): Promise<PlatformResult> { if (!endpoint) { throw new Error('Init: You must configure a Bitbucket Server endpoint'); } - if (!(username && password) && !token) { + if (!(username && password)) { throw new Error( - 'Init: You must configure either a Bitbucket Server token or username and password' + 'Init: You must configure a Bitbucket Server username/password' ); } // TODO: Add a connection check that endpoint/username/password combination are valid (#9595)