Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Pipeline retrieves JSON error #10

Open
CuervoEC opened this issue Sep 26, 2024 · 3 comments
Open

Update Pipeline retrieves JSON error #10

CuervoEC opened this issue Sep 26, 2024 · 3 comments

Comments

@CuervoEC
Copy link

Happened when updating some pipelines, with irrelevant/minimal changes. Probably the Json is not built correctly during update. Pipelines were created correctly on first instance.

│ Error: updating pipeline 'test' errored with: got 422 from GoCD while making PUT call for https://foo.com/go/api/admin/pipelines/test
│ with BODY:{
│   "message" : "Json `{\"attributes\":{}}` does not contain property 'type'"
│ }
│ 
│   with gocd_pipeline.test-service,
│   on gocd-pipelines.tf line 1, in resource "gocd_pipeline" "test-service":
│    1: resource "gocd_pipeline" "test-service" {
│ 
╵
@CuervoEC
Copy link
Author

tfstate says the pipeline was succesfully updated, and in a new terraform apply, doesn't attempt to apply it again.

@nikhilsbhat
Copy link
Owner

@CuervoEC, The older version of gocd-sdk-go had a bug. I recently updated the SDK to improve pipeline functionality. While I updated the CLI to work with the new SDK, I missed updating it here. I'll take a look at it.

@CuervoEC
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants