jenkinsci / jenkinsci/credentials-plugin

[JENKINS-61977] Adding a credential of specific type

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

Description

Say that in a Jenkins configuration the list of available credential types is "A", "B" and "C".

Create a job with a credential input parameter FOO_CRED and limit the possible types to type, say "B".

Go to Build with Parameters on the job and click the Add button to create a new credential to be used in FOO_CRED.

You will see that all the credential types are listed ("A", "B" and "C"), rather than just the ones that the present input parameter is limited to.

Ideally, only the types the present input parameter is limited to should be in the dropdown —in this case only "A" should be visible.

---
Originally reported by mig82, imported from: Adding a credential of specific type


  • status: Open
  • priority: Minor
  • component(s): credentials-plugin
  • label(s): createItem
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08

Raw content of original issue

Say that in a Jenkins configuration the list of available credential types is "A", "B" and "C".

Create a job with a credential input parameter FOO_CRED and limit the possible types to type, say "B".

Go to Build with Parameters on the job and click the Add button to create a new credential to be used in FOO_CRED.

You will see that all the credential types are listed ("A", "B" and "C"), rather than just the ones that the present input parameter is limited to.

Ideally, only the types the present input parameter is limited to should be in the dropdown —in this case only "A" should be visible.

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.