How do I add scan credentials for Jenkins Bitbucket Branch Source Plugin?
Asked Answered
C

1

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
Concupiscence answered 17/6, 2016 at 20:5 Comment(8)
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.Dermato
I tried that first. The documentation says "Only HTTP credentials are accepted in this field" - which I assume is "username and password"Concupiscence
and what happens when you enter such information?Dermato
It saves the credentials, but nothing ever shows in the dropdown. I will add an imageConcupiscence
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.Dermato
Plugins are up to date. I basically just installed jenkins, added the plugins, and tried to create this item/job..Concupiscence
Is it related to jenkins-pipeline/Jenkinsfile in any way?Manville
Is that resolved ? I am still not getting credentials under drop down dialog box.Cassiterite
T
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.

Trousers answered 18/6, 2016 at 8:45 Comment(1)
Could have sworn I tried that, but it does work. Does seem to be a bug with the folder level credentials though. Thanks!Concupiscence

© 2022 - 2024 — McMap. All rights reserved.