Issue
I choose to build pipeline script SCM, the project name does not appear when I put my project name.
It says:
Something went wrong when trying to contact Bitbucket Server: Provided credentials cannot access the resource
When I try to put my project name.
I already put name as my Bitbucket server project where it says:
Enter the name of the Bitbucket Server project containing the repository you want Jenkins to build from. To find a project, start typing. If it doesn't appear in the search results, the credentials that you've chosen may not have read access to it and you'll need to provide different credentials.
but I'm still getting an error.
May I know how to make it possible to deploy source code from Bitbucket server into Jenkins server?
Solution
Steps to be followed
- In bitbucket create a personal access token
- Create a credential in Jenkins for the above personal access token
- In Jenkins job configuration, use the credential setup in (2) to use for connecting to the bitbucket.
Answered By - Saravanan
Answer Checked By - David Goodson (JavaFixing Volunteer)