Bitbucket Branch Source plugin fails to connect to Bitbucket server on cloud

21 views
Skip to first unread message

Anantha Madhava

unread,
May 8, 2019, 7:07:03 AM5/8/19
to Jenkins Users
Hello Gurus,

I am using Jenkins V2.156 with Bitbucket Branch Source V2.4.2 plugin. Jenkins master is within the organization network.
We have Bitbucket server V5.16.0 on AWS.

When I configure Multibranch Pipeline job with Bitbucket as 'Branch Sources', it throws the error - 'selected credentials do not have permission to determine whether <<project key>> does or does not exist'.

Bitbucket_Branch_Source.png




However, when I use Git as 'Branch Sources', I do not get this error. The job recognizes the new branches created, Pull Requests created (upon specifying the refspec for Pull Request). But the Pull Requests build fails with the error - 'ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.'

Since both of these approaches use the same Bitbucket Branch Source plugin, I wonder why the connection fails in the first approach and succeeds in the second approach?

Of the above scenarios, I am keen on getting the Bitbucket as Branch Source to a working state. How do I resolve this connection problem?

Regards,
Anantha
Reply all
Reply to author
Forward
0 new messages