I configured a job through the web UI, checked "SSH Agent" but didn't add any credentials. The saved `config.xml` file looks good:
"ssh-agent@1.15">
false
When opening the configure web UI again the form shows one credential entry. When saving the form now (without changing anything) the credential entry is being stored in the `config.xml`:
"ssh-agent@1.15">
xxxxx
false
The expectation is that:
- if the `config.xml` doesn't contain a credential entry the web ui should not show one and
- opening the configure form and saving it without making any changes shouldn't add a credential entry
Originally reported by
dthomas, imported from: Form shows one credential when xml contains none
- status: Open
- priority: Minor
- component(s): ghprb-plugin, ssh-agent-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 20260604-211335
Raw content of original issue
I configured a job through the web UI, checked "SSH Agent" but didn't add any credentials. The saved `config.xml` file looks good:
<com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper plugin="[email protected]">
<credentialIds/>
<ignoreMissing>false</ignoreMissing> </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
When opening the configure web UI again the form shows one credential entry. When saving the form now (without changing anything) the credential entry is being stored in the `config.xml`:
<com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper plugin="[email protected]">
<credentialIds>
<string>xxxxx</string>
</credentialIds>
<ignoreMissing>false</ignoreMissing> </com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper>
The expectation is that:
- if the `config.xml` doesn't contain a credential entry the web ui should not show one and
- opening the configure form and saving it without making any changes shouldn't add a credential entry
environment
Jenkins 2.46.1<br/>
ssh-agent-plugin 1.15<br/>
ghprb 1.36.1<br/>
master running on Ubuntu 16.04<br/>
Chromium 57
I configured a job through the web UI, checked "SSH Agent" but didn't add any credentials. The saved `config.xml` file looks good:
"ssh-agent@1.15"> falseWhen opening the configure web UI again the form shows one credential entry. When saving the form now (without changing anything) the credential entry is being stored in the `config.xml`:
"ssh-agent@1.15"> xxxxx falseThe expectation is that:
Originally reported by
dthomas, imported from: Form shows one credential when xml contains none
Raw content of original issue
environment