gocd-yaml-config-plugin
gocd-yaml-config-plugin copied to clipboard
Error exporting pipeline created using the UI.
For some reason GoCD and gocd-yaml-config-plugin is not exporting some pipelines created through the wizard of GoCD. We created some pipelines using the UI and for some reason we have the next error everytime that we try to export it.
There was an unknown error downloading the pipeline configuration. Please refresh the page and try again.
We tried to delete multiples steps to find out what it was causing but at the end we didn't found anything. We did this because we are using multiples steps as a custom commands and we blame to GoCD UI to write some characteres not supported by the plugin.
GOCD Version: 21.2.0 Server running on CentOS host
Are you able to check what is in the GoCd server logs corresponding with this error?
Also would be interesting to understand what you find is not supported by the plugin that you need the UI for.
Hello @Pakoke.
Related to this problem, is your pipeline fetching artifact from the same pipeline on any stage?
If there are Fetch Artifact Task, the parameter Pipeline Name must be set, can't be empty.
Possible solutions
- Always set the pipeline name on Fetch Artifact Task.
- Modify plugin to detect when the property Pipeline Name is null and replace by the main name.
Trace error
You can trace this error using browser developers tools.
- Open web browser dev tools
- Export Pipeline to YAML/JSON
- Now, in the console should be a message like this
- Click on it. On the Network tab a row will be highlighted, click it and choose Preview tab
I hope this helps you.