jenkinsci / jenkinsci/credentials-plugin
[JENKINS-43633] Scope credentials to branch being built
- 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
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
Assessment
This issue has not been assessed yet.