Hello,
We have GoCD pipelines configured in our current set up and we want to move these pipeline json configuration files to BitBucket and set up a config repository and import these pipelines in the new GoCD.
We have used GoCD API to export these pipelines. But the pipeline json configuration looks different from the manually download one.
The one that is downloaded from the UI works fine with the config repository, but the API one is not working. I see there is an attribute parameter being used within the materials and it is not there in the manually downloaded one. This is causing the issue.
"materials": [
{
"attributes": {
"url": "<repo_url>",
"branch": "master",
"shallow_clone": false,
"filter": {
"ignore": [],
"includes": []
},
"auto_update": true
},
"type": "git"
}
]
It is difficult to download so many pipelines manually and make changes in each and every pipeline.
Please let us know if there is any change that we need to make in the API call to export it without the attributes parameter or please share the API document that supports config repository.
Thanks and Regards,
Shwetha