question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export existing Jenkins configuration to YML

See original GitHub issue

To make it really easy migrate already running Jenkins instances to Configuration as Code, or to just use Jenkins itself as editor for the YML file an export functionality should be supplied to the user from our UI footprint.

I imagine a kind of Export current configuration button or link, that will show the current Jenkins configuration as YML and make it easy to download it.

The user can then save the YML file to git and other places, and supply it back to a new or existing Jenkins instance to start using Configuration as Code Plugin.

I would expect also to be able to download the needed plugin.yml that described the needed plugin on my current instance.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
v7rcommented, May 5, 2021

If someone stumbled on this issue from google search, here is the document on “Exporting configurations” https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/configExport.md

1reaction
ewelinawilkoszcommented, Apr 20, 2018

@jstrachan we will try to figure out a way to do that, don’t think it will be a part of first official release though… knowing you’re interested (well, actually almost every meetup about JCasC brings that question) will help with prioritisation for sure!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Jenkins Configuration as Code - DevOps.com
Export the current configuration into Jenkins.yaml, click the Export Configuration button to download the Jenkins.yaml file.
Read more >
Configuration as Code - Jenkins Plugins
The Configuration as Code plugin is an opinionated way to configure Jenkins based on human-readable declarative configuration files.
Read more >
Jenkins Configuration as Code: Migration - CloudBees
Due to internal Jenkins glitches, the export can't be used as-is to create a Jenkins controller clone, and the YAML stream could include...
Read more >
Getting started with Jenkins Configuration as Code - Eficode
JCasC is a Jenkins plugin that allows you to store and maintain your Jenkins configuration in a YAML file. I provided an outline...
Read more >
How to export/import the Jenkins configuration? - Stack Overflow
There is no simple way to backup/export selected parts of the configuration, since Jenkins configuration data is scattered among.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found