简体   繁体   中英

Jenkins configuration as a code migration

We have a jenkins instance with stable repository helm charts. As stable charts are deprecated, we are trying to upgrade our jenkins with jenkinsci/helm-chart repository.

How to migrate our existing configuration to JCasc through helm chart?

To migrate your existing configuration to JCasc, you can go to "Manage Jenkins" then "Configuration as code", and click on "View configuration" to get your current configuration as code.
You can also go directly to https://your-jenkins-instance-url.example/configuration-as-code/viewExport

Select and copy all the export (Ctrl+A then Ctrl+C, there is a script on that page selecting only the export for you), then paste this content in your chart values.yaml as explained in the jcasc documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM