jenkinsci / jenkinsci/credentials-plugin

[JENKINS-64079] Credentials are not properly merged when applying JCasC

Open
#877 2 comments 0 reactions 0 assignees View on GitHub
component:credentials-plugin imported-jira-issue jcasc-compatibility priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

Currently if I manually add a credential (no matter if global domain or new domain) it is cleared after I click on Reload existing configuration in /configuration-as-code/.

I found nothing on how existing configuration is supposed to be merged with the configuration provided as yaml in the documentation. But in the case of credentials it is sometimes desirable to allow credentials next to the ones being maintained in the configuration file.

---
Originally reported by kwin, imported from: Credentials are not properly merged when applying JCasC


  • status: Open
  • priority: Minor
  • component(s): credentials-plugin
  • label(s): jcasc-compatibility
  • resolution: Unresolved
  • votes: 2
  • watchers: 3
  • imported: 2025-12-08

Raw content of original issue

Currently if I manually add a credential (no matter if global domain or new domain) it is cleared after I click on Reload existing configuration in /configuration-as-code/.
I found nothing on how existing configuration is supposed to be merged with the configuration provided as yaml in the documentation. But in the case of credentials it is sometimes desirable to allow credentials next to the ones being maintained in the configuration file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.