configuration-as-code-plugin
configuration-as-code-plugin copied to clipboard
granular credentials management using configuration as code plugin
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
This might be something @dduportal can advise on as he's created something for managing folder credentials
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: https://github.com/jenkinsci/configuration-as-code-plugin/issues/782#issuecomment-494406090
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!