Comments (10)
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
from configuration-as-code-plugin.
@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!
from configuration-as-code-plugin.
We'd love to switch to Configuration as Code on Jenkins X - however we're a little too scared to go through all our configuration and figure out the correct YAML equivalent to get a working Jenkins with the new YAML notation.
If anyone can figure out some way to easily generate a YAML file from a running Jenkins server (whether its a CLI thing or script or hack or real UI thing I don't much care) - I'd be most grateful!!!
from configuration-as-code-plugin.
@ewelinawilkosz awesome thanks! I'd have thought this issue is the biggest barrier to adoption - and most folks I talk to really wanna move to Configuration as Code ASAP!
Even if its just an extra plugin you install or some groovy script or something that'd really help.
I guess we could grab all the *.xml files and have some test program inside the Configuration as Code repo try and read those XML files and do its best to figure out the yaml equivalent?
from configuration-as-code-plugin.
I think it even crossed our minds :) but again, we don't want to write xml parser... having it as a workaround could be acceptable and if requests like yours are coming we may need to reevaluate
from configuration-as-code-plugin.
So far I we had to stitch a lot of examples together and I want to provide an full example for how we currently created our own Jenkins Master.
from configuration-as-code-plugin.
for the record : pipeline snippet generator is implemented here
from configuration-as-code-plugin.
A major blocker for me to implement this is one can't create a second Jenkins
instance, as Jenkins#theInstance singleton will break.
from configuration-as-code-plugin.
work started under https://github.com/jenkinsci/configuration-as-code-plugin/tree/export
from configuration-as-code-plugin.
see #200
from configuration-as-code-plugin.
Related Issues (20)
- Snake YAML Missing function HOT 5
- `$StaplerConverterImpl` is invoked with unexpected arguments
- Nicer error page on configuration error
- CasC support DateParameter plugin?
- Reload existing configuration failure HOT 10
- Not able to configure pipeline jobs using the JCasC plugin
- No configurator for the following root elements services HOT 8
- Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : queueItemAuthenticator HOT 4
- JCasC - configure a hudson.security.SecurityRealm HOT 3
- Typo / Name Change in Configuration as Code for gitscm demo HOT 6
- warning popup about master migration HOT 2
- SSH private key credential is corrupted by export + import HOT 2
- Add JUnit5 Annotation support for Test Cases
- Missing information how to generate/create yaml file HOT 1
- JCASC not able export create yaml with "list view swithin nested view" HOT 1
- Configuration As Code Plugin compatible with Scriptler HOT 1
- Jenkins Configuration Reload issue - ERROR 401 Unauthorized
- java.lang.IllegalArgumentException: No hudson.tools.ToolInstaller implementation found for jdkInstaller on Jenkins 2.440.1
- decodeBase64 it not working in casc secrets HOT 1
- Nonnull dependency issue on startup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configuration-as-code-plugin.