-
Bug
-
Resolution: Not A Defect
-
Critical
-
Jenkins 2.346 with Java 11
Bitbucket Server Integration 3.2.1
I have used many pipeline jobs and define the bbs_checkout steps.
In a pipeline job, it seems that the `bbs_checkout` with the newer version of the plugin cannot access to the credentials
or something is wrong with the ssh username and password secrets.
Here is my step code:
bbs_checkout branches: [[name: "*/${GIT_BRANCH}"]], projectName: GIT_PROJECT, repositoryName: GIT_REPOSITORY, serverId: '21197389-53b2-4e6a-8bf8-b24661cc08b7', sshCredentialsId: GIT_CREDENTIALS
And the logs are below:
Bitbucket - responded with not authorized May 06, 2022 1:55:53 PM INFO com.atlassian.bitbucket.jenkins.internal.scm.BitbucketScmHelper getRepository Error creating the Bitbucket SCM: Something went wrong when trying to contact Bitbucket Server: Provided credentials cannot access the resource May 06, 2022 1:55:53 PM INFO com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCM initializeGitScm
This is totally fine when I use the plugin version 2.1.3 with the same credentials. Is there anything spec changed?
- is related to
-
JENKINS-65466 Permit valid job configurations with SSH credentials only
-
- Open
-
Hi Daeho, sorry for the delay in responding.
To answer your question, your BBS pipeline step is not working because you did not provide a credentials ID in your step- only an SSH credential. The bbs_checkout_branches step has a few behaviours that require a standard credential:
The step will not function without it. By adding a 'credentialsId: CREDENTIAL` this problem should be resolved. If this isn't possible for your setup, could you please vote and leave a comment on JENKINS-65466 explaining your use case?
Thanks,
Martin