I've not seen any facility which would allow you to restrict use of a credential by user. Credentials can be limited so that they are only visible for certain hosts and/or certain protocols, but not by which users or roles in the system can reference those credentials when defining a job.
I assume you've already checked that the role strategy plugin doesn't have the facility you need. Its screen shots show that it can control who can tag a repository, but it doesn't seem to allow control over who can access a credential. Mark Waite On Fri, Nov 20, 2015 at 6:22 AM Francois Marot <francois.ma...@gmail.com> wrote: > Hi all, > > I need your feedback to know if my Company's requirement is compatible > with Jenkins: > > we have many Git repositories. > > Some jenkins jobs need to access some git repositories. But some > repositories contain source code more sensible than others, hence the need > for different credentials regarding the git (ssh) credentials. > > On the jenkins side, for now, we have the git credentials globally > available. > > What we would like is to have only some users able to create jobs, and > each user to have only acces to some git ssh credential at job creation > time (so that the job can reference a git repository that the user is > allowed to access). > > Is it possible ? I did not saw anything like this but I may not have found > the correct plugins... > > > Francois > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/90bbd255-4c85-4bed-aca9-7bb6b10c4500%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/90bbd255-4c85-4bed-aca9-7bb6b10c4500%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHGkB9kGK99VviQyQ1GcRBeQ0Oi3tFn1e65S7%2B0sheGVw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.