Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

granular credentials management using configuration as code plugin #2544

Open
kartikkkj opened this issue Aug 16, 2024 · 2 comments
Open

granular credentials management using configuration as code plugin #2544

kartikkkj opened this issue Aug 16, 2024 · 2 comments

Comments

@kartikkkj
Copy link

What feature do you want to see added?

we wanted to use Jenkins as our daily operation with configuration as code extensively to automate that workflow but there is one issue: we always wanted to save credentials with same parameter key value with different pair value and make a limit just for that folder.

Upstream changes

No response

@timja
Copy link
Member

timja commented Aug 16, 2024

This might be something @dduportal can advise on as he's created something for managing folder credentials

@dduportal
Copy link
Contributor

Hi @kartikkkj , the idea is to create credentials per folder/job.
There is a video at https://www.youtube.com/watch?v=Zt3W47y-v3Y explaining it.

Regarding configuration as code, you'll need to define a jobs section and fill it with JobDSL syntax
You have a simple example here: #782 (comment)

On the Jenkins public Infrastructure, we are using a Kubernetes Helm Chart as template engine to generate the JobDSL code (Yaml --> JobDSL) with the chart https://github.com/jenkins-infra/helm-charts/tree/main/charts/jenkins-jobs.
You have an example of configuration here: https://github.com/jenkins-infra/kubernetes-management/blob/main/config/jenkins-jobs_infra.ci.jenkins.io.yaml .

Let us know if you need anything else!

@timja timja removed the enhancement label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants