You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using a version of GoCD that is 18.3 or later then this will fail with the following error:
Traceback (most recent call last):
File "test.py", line 16, in <module>
configurator.save_updated_config()
File "/Users/david.reedfrancis/workspace/jsains/tickets/smss/188/smartshop-services-gocd/.venv_Darwin_x86_64_2.7.15/lib/python2.7/site-packages/gomatic/go_cd_configurator.py", line 307, in save_updated_config
self.__host_rest_client.post('/go/admin/restful/configuration/file/POST/xml', data, headers)
File "/Users/david.reedfrancis/workspace/jsains/tickets/smss/188/smartshop-services-gocd/.venv_Darwin_x86_64_2.7.15/lib/python2.7/site-packages/gomatic/go_cd_configurator.py", line 346, in post
raise RuntimeError("Could not post config to Go server (%s) [status code=%s]:\n%s" % (url, result.status_code, message))
RuntimeError: Could not post config to Go server (http://localhost:8153/go/admin/restful/configuration/file/POST/xml) [status code=409]:
"Type" is required for Artifact
I've encountered an issue with creating a template from code, consider this bit of config:
If you are using a version of GoCD that is 18.3 or later then this will fail with the following error:
Digging into the code it seems that there is a function in pipeline.py that switches how the artifact XML is created based on the GoCD version, it seems that the detection will only work for pipelines that have a group as a parent - https://github.com/gocd-contrib/gomatic/blob/master/gomatic/gocd/pipelines.py#L105
I don't think this code will ever work for templates.
The text was updated successfully, but these errors were encountered: