Configuring a remote repository from bitbucket into Jenkins is quite simple.

Verify you’ve installed the git plugins and everything is up-to-date:

Create a new free-style project

Configure the project

In this step I opted adding my credentials into the URL in the format https://<username>:<password>@bitbucket.org/repo but it’s better to setup SSH credentials if possible. You can obtain the URL from bitbucket, it’s the same one you would use to clone your repository.

And that’s it!

If you receive the message: ERROR: Error fetching remote repo ‘origin’ verify your credentials.