How can I be authorized to work in Jenkins?

First, sorry if this question and its solution exist somewhere, but I cannot find it.

I would like to be able to create credentials inside a job and only be used inside that job, a kind of job scope credentials.

Currently Credential plugins only offer global and system scope, so credentials are available for all jobs.

The credential bindings plugin doesn't seem to solve my problem, but to be fair, I'm not sure I understand all of its functionality, and I'd rather not use a text or file provider.

I am using jenkins 1.589 Credential Plugin 1.18

Hello

+3


source to share


2 answers


Using the Findingers and Credentials Binding plugin, you can define folder-level credentials that are only available for jobs within that folder. Folder-level storage becomes available after the folder is created.



Source: https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs

+1


source


The only thing I have found so far is add to my profile credentials

either by going to
http: // jenkinsHostname / user / myuser / credential-store / or
http: // jenkinsHostname / user / myuser / configure

and hopefully plugins that need credentials accept credentials with USER scope.

This is not a JOB area, but a USER area. At least it's not GLOBAL or SYSTEM, so no other jobs from another user are available.



If another user wants to call the assembly, he will need to set up the job and put his credentials.

It works for plugins that I have implemented on my own, but not for a subversion plugin, for example, which requires system or global credentials.

0


source







All Articles