Skip to content

Commit

Permalink
fix: Revert "fix: Add support for PAT in Bitbucket Server. Closes #14900
Browse files Browse the repository at this point in the history
" (#20979)
  • Loading branch information
viceice authored Mar 16, 2023
1 parent d739141 commit 1a8088c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/modules/platform/bitbucket-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a8088c

Please sign in to comment.