gocd-api-to-json-config
Tool for extracting pipeline config from GO Continuous Delivery servers and converting it to the JSON Config format.
Installation
npm i -g gocd-api-to-json-config
Create .go-credentials configuration file in either your user's home directory, or the Current Working Directory where you wish to save the config files to.
{ "username": "my-username", "password": "my-password" }
The go user credentials will require API access to function correctly.
Usage
Navigate to where you want to save the config files.
To Export a specific Pipeline:
goconfig pipeline Existing.Pipeline -h mygoserver.com:8153 -g MyTargetGroup
To Export all pipelines in a specified Group:
goconfig group PipelineGroup -h mygoserver.com:8153
Options
-h, --help output usage information
-V, --version output the version number
-h, --host <host> GO Server host
-g, --targetgroup <group> GO Pipeline Group to set pipelines for (required for pipeline mode)