add waraning about export to docs

This commit is contained in:
Ewelina Wilkosz 2018-10-05 09:09:34 +02:00 committed by Nicolas De loof
parent 2dc5e3518c
commit 684fe6ea75
2 changed files with 2 additions and 4 deletions

View File

@ -16,6 +16,4 @@ Various samples of plugins' configuration can be found in [demos](../demos) fold
## Export existing configuration
To be able to do that you need to install the plugin manually on your working Jenkins instance and use export function under http://[your_jenkins_url]/configuration-as-code/. Please note that, at this time, the produced yaml output might not be usable as-is
as input for Configuration-as-Code. A strict roundtrip between export and configure is under consideration but might require some
changes in jenkins-core and few plugins.
To be able to do that you need to install the plugin manually on your working Jenkins instance and use export function under http://[your_jenkins_url]/configuration-as-code/. Please note that export is not intended to offer a directly usable jenkins.yaml configuration. It can be used for inspiration writting your own, but be aware that export can be partial, or fail for some components.

View File

@ -30,7 +30,7 @@ The devops team would like more traceability around changes, by completely move
From that point on they all have full traceability of all the changes made, and they are able to roll it back easily by reverting commits. They can review the changes simply by looking at the git diffs on commits.
**Getting there and adopting Jenkins Configuration as Code** is also quite easy for the devops team. They will need to install the plug-in, and go the the Configuration as Code menu in Manage Jenkins, and use the export function to create the initial YAML files that represent their current global configuration and plug-in's installed.
**Getting there and adopting Jenkins Configuration as Code** is also quite easy for the devops team. They will need to install the plug-in, and go the the Configuration as Code menu in Manage Jenkins, and use the export function to create the initial YAML files that represent their current global configuration and plug-in's installed. Export is not intended to offer a directly usable jenkins.yaml configuration. It can be used for inspiration writting your own, but be aware that export can be partial, or fail for some components.
When the files are in git, they can point to the file in the repository in the Configuration as Code menu, and click reload so Jenkins updates it's configuration accordingly.