You can use the following in a pipeline:
git branch: 'master',
credentialsId: '12345-1234-4696-af25-123455',
url: 'ssh://git@bitbucket.org:company/repo.git'
If you’re using the ssh url then your credentials must be username + private key. If you’re using the https clone url instead of the ssh one, then your credentials should be username + password.