It is not possible to add credentials when configuring for example a shared library from the global configuration {{Manage Jenkins > Configure System > Global Pipeline Libraries}} This is not only impacting Pipeline Shared Library. Other plugins that accepts credentials in the Jenkins global configuration seem to be impacted too.
h3. Environments
h3. Analysis
Digged a bit into this and hopefully could narrow down the problem. This issue seems to happenswhen using {{f:repeatableProperty}} or {{f:repeatable}} to allow adding configuration. It only happens on newly added configuration in the UI: for example in the gloabl config, you must first add a Shared Library and the component you added has a credentials dropdown.
* Start a new Jenkins instance with no global credentials. * Go to {{Manage Jenkins > Configure System > Global Pipeline Libraries}} * Add a library * Use a "Modern SCM" and either "Git" or "GitHub" * Try to add credentials clicking on Add, it does not work..
h3. Workarounds
1. Create credentials from {{Manage Jenkins > Manage Credentials}} and then the credentials will be selectable in the global configuration. 2. Partially fill the information for the shared library (without the credentials), save the configuration, go back to the configuration. It is now possible to "Add" credentials
It is not possible to add credentials when configuring a shared library from the global configuration Manage Jenkins > Configure System > Global Pipeline Libraries
This is not only impacting Pipeline Shared Library. Other plugins that accepts credentials in the Jenkins global configuration seem to be impacted too.
Environments
Analysis
Digged a bit into this and hopefully could narrow down the problem. This issue seems to happenswhen using f:repeatableProperty or f:repeatable to allow adding configuration. It only happens on newly added configuration in the UI: for example in the gloabl config, you must first add a Shared Library and the component you added has a credentials dropdown.
Start a new Jenkins instance with no global credentials.
Go to Manage Jenkins > Configure System > Global Pipeline Libraries
Add a library
Use a "Modern SCM" and either "Git" or "GitHub"
Try to add credentials clicking on Add, it does not work..
Workarounds
1. Create credentials from Manage Jenkins > Manage Credentials and then the credentials will be selectable in the global configuration. 2. Partially fill the information for the shared library (without the credentials), save the configuration, go back to the configuration. It is now possible to "Add" credentials
It is not possible to add credentials when configuring for example a shared library from the global configuration {{Manage Jenkins > Configure System > Global Pipeline Libraries}} .This is not only impacting Pipeline Shared Library. Other plugins that accepts credentials in the Jenkins global configuration seem to be impacted too.
h3. Analysis
DiggedDigging a bit into this and hopefully, I could narrow down the problem. This: the issue seems to happenswhen using happen when the component that hold the credentials dropdown is created from an {{f:repeatableProperty}} or {{f:repeatable}} to allow adding configuration. It only happens on newly added configuration in the UI: for example in the gloabl global config, you must first add a Shared Library and then the component Shared Library item that you added has a credentials dropdown.
* Start a new Jenkins instance with no global credentials. * Go to {{Manage Jenkins > Configure System > Global Pipeline Libraries}} * Add a library
* Use a "Modern SCM" and either "Git" or "GitHub" * Try to add credentials clicking on Add, it does not work..
h3. Workarounds
1. Create credentials from {{Manage Jenkins > Manage Credentials}} and then the credentials will be selectable in the global configuration. 2. Partially fill the information for the shared library (without the credentials), save the configuration, go back to the configuration. It is now possible to "Add" credentials
I suppose that using repeatableHetero could be a workaround. But there is a bug here, in either core or credentials-plugin. Also I wonder if the issue https://issues.jenkins-ci.org/browse/JENKINS-39324 does capture the problem ? it does look really specific though.