Cannot trigger a pipeline with variables GoCD v18.3.0
Opened this issue · 1 comments
Hi,
I cannot find any documentation on this. What I am look for is the correct syntax required to trigger pipelines with variables. I have tried a combination of the following, but continue to get:
yagocd.exception.RequestError: [500] Server Error: Server Error for url
'[{"name": "bla", "value": "something"}]'
'{"name": "bla", "value": "something"}'
'[{"bla": "something"}]'
'{"bla": "something"}'
Please note that scheduling a pipeline run works fine when variables is None
yagocd is also broken when scheduling pipelines with variables on 1.8.3 . See where it's broken:
https://api.gocd.org/18.1.0/#scheduling-pipelines
vs
https://api.gocd.org/18.3.0/#scheduling-pipelines
And then the yagocd code:
https://github.com/grundic/yagocd/blob/master/yagocd/resources/pipeline.py
API does not take options "variables" and "secure_variables", but instead "environment_variables" (as a list)