-
Bug
-
Resolution: Fixed
-
Minor
-
-
933.3.0
I have attached a short video to illustrate the issue. In the initial configuration, where no branch source has been configured, some credentials won't show in the credentials dropdown. I investigated the request, and see that the `serverUrl` parameter in fillCredentialsIdItems request is blank. Then, after I saved the configuration and reconfig the plugin again, the missing credential shows, with the fillCredentialsIdItems request filled with proper `serverUrl` value: "https://bitbucket.org". I'm using the Bitbucket cloud.
- is duplicated by
-
JENKINS-72023 "Secret text" credentials are not listed when creating a new multibranch pipeline
-
- Closed
-
- relates to
-
JENKINS-71174 SCM Source server dropdown shows invalid Unregister Server error message
-
- Closed
-
- links to
I see the video and I had try myself.
The issue is related on how the UI works. When the UI load the component page, any combobox in the page calls own fillItem method at the same time. That means when it call for the first time the
http://localhost:8090/jenkins/job/xxx/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator/fillCredentialsIdItems
method, values in serverUrl combobox are not yet filled so an empty string is send.
If you have more than one Bitbucket server configured, choosing the server value will trigger a new fillCredentialsIdItems with the selected serverUrl.