upgraded to 13.10.2 and calling REST API for pipeline creation is broken now
We have recently upgraded to 13.10.2 and calling Pipeline creation REST API is broken now.
https://<MY_INSTANCE>/api/v4/projects/<PROJECT_ID>/pipeline
body { {“ref”:“master”,“variables”:[{“key”:“TEST_INPUT”,“value”:123}}]} }
It just throws 500 error, not at all useful. From the gitlab logs, we see this error below
ArgumentError (TEST_INPUT must be of type String or nil value, while it was: Integer): /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/ci/variables/collection/item.rb:11:in `initialize’
Once I change the payload as below it works. However there could be 100’s of triggered projects, which our customers might use and it is going to be hard asking them to fix their applications. Can this be treated as a regression and get a patch for it? body { {“ref”:“master”,“variables”:[{“key”:“TEST_INPUT”,“value”:“123”}}]} }