configuration-as-code-plugin icon indicating copy to clipboard operation
configuration-as-code-plugin copied to clipboard

Jenkins job to Export Configuration

Open or-he-MA opened this issue 2 years ago • 1 comments

Description

Hey, we are trying to create a Jenkins Job to download the current configuration, and apply it to the running ConfigMap. The idea is basically to create a daily job which will download the config, and apply it. Making sure the Jenkins cm is up to date.

I cant find a way to download the Configuration via the job. Couldn't find anything in the API documentation that could assist. Could someone assist with a way of achieving this?

or-he-MA avatar Nov 27 '22 08:11 or-he-MA

Check if there's an API call you can make and do a curl get to export the configuration, on Jenkins side and not necessarily on the plugin side, since you wrote you checked API documentation but haven't specified where, so check all places (same as there's an API of '/crumbIssuer/api/xml' to issue a crumb and '/createItem?name=...' to create a job, maybe there's an API for exporting configuration as well.

hilafish avatar Jan 18 '23 10:01 hilafish