Search code examples
jenkinscloudbeesjenkins-pipeline

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


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

Solution

  • 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.