Skip to content

Commit

Permalink
fix(bitbucket): ensure username is set (lindell#212)
Browse files Browse the repository at this point in the history
Ensure username is set so that bitbucket_server scm does not fail.

Co-authored-by: Ryan Currah <[email protected]>
  • Loading branch information
ryancurrah and rcurrah authored Nov 8, 2021
1 parent 45f20a0 commit a463709
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ func createBitbucketServerClient(flag *flag.FlagSet, verifyFlags bool) (multigit
return nil, errors.New("no base-url set for bitbucket server")
}

if username == "" {
return nil, errors.New("no username set")
}

token, err := getToken(flag)
if err != nil {
return nil, err
Expand Down

0 comments on commit a463709

Please sign in to comment.