9

I am attempting to set up the CloudBees Bitbucket Branch Source Plugin but I am unable to set the credentials. I have added username and password credentials, but the dropdown is still empty.

I am using a new installation of Jenkins version 2.9 with the Bitbucket Branch source plugin version 1.5.

enter image description here

Here are the credentials I have added. I also added SSH username with private key in an earlier attempt. enter image description here

I installed jenkins using docker and then added the plugins. Here is the jenkins portion of my docker-compose file

jenkins:
image: jenkinsci/jenkins:latest
#image: arcanneero/cd-jenkins-pipeline
ports:
  - "8080:8080"
  - "50000:50000"
volumes:
  - ./jenkins/data:/var/jenkins_home
Lee
  • 1,652
  • 1
  • 13
  • 21
  • Have you tried clicking the _Add_ button and added your username + token there? I also had problems for the Github pendant of this plugin to figure out, of which type the credentials need to be. – StephenKing Jun 17 '16 at 20:11
  • 1
    I tried that first. The documentation says "Only HTTP credentials are accepted in this field" - which I assume is "username and password" – Lee Jun 17 '16 at 20:19
  • and what happens when you enter such information? – StephenKing Jun 17 '16 at 20:21
  • 1
    It saves the credentials, but nothing ever shows in the dropdown. I will add an image – Lee Jun 17 '16 at 20:24
  • kk.. can imagine that. Are all your plugins up-to-date? I remember some bug where the _Add_ form was empty. Otherwise I have no clue - maybe someone else. – StephenKing Jun 17 '16 at 20:25
  • Plugins are up to date. I basically just installed jenkins, added the plugins, and tried to create this item/job.. – Lee Jun 17 '16 at 20:38
  • Is it related to jenkins-pipeline/Jenkinsfile in any way? – Krzysztof Krasoń Jun 18 '16 at 04:47
  • Is that resolved ? I am still not getting credentials under drop down dialog box. – Vaibhav Jain Dec 06 '17 at 14:56

1 Answers1

0

Try create credentials at top Jenkins level instead of folder level like you are doing now.

Although, folder level credentials should be usable too. Filed JENKINS-36066 to track it.

amuniz
  • 3,292
  • 2
  • 20
  • 22
  • Could have sworn I tried that, but it does work. Does seem to be a bug with the folder level credentials though. Thanks! – Lee Jun 19 '16 at 12:34