jenkinsci / jenkinsci/credentials-plugin

[JENKINS-43633] Scope credentials to branch being built

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

Description

Our workflow uses branches for feature development, qa and releases to production.  This different environments have credentials attached to them.   For code merges go through a review stage and only authorized folks can perform merges to certain branches.   We have just started using jenkins pipeline with the withCredentials step.   It would be awesome if we could limit access to credentials when specific branches are being built.  Ie it should not be possible to get a credential for production when a feature/* branch is being built.  

---
Originally reported by goraxe, imported from: Scope credentials to branch being built


  • status: Open
  • priority: Minor
  • component(s): credentials-plugin
  • resolution: Unresolved
  • votes: 7
  • watchers: 9
  • imported: 2025-12-08

Raw content of original issue

Our workflow uses branches for feature development, qa and releases to production.  This different environments have credentials attached to them.   For code merges go through a review stage and only authorized folks can perform merges to certain branches.   We have just started using jenkins pipeline with the withCredentials step.   It would be awesome if we could limit access to credentials when specific branches are being built.  Ie it should not be possible to get a credential for production when a feature/* branch is being built.  

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.