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

Cannot trigger a pipeline with variables GoCD v18.3.0 #8

Open
standingb76 opened this issue Apr 26, 2018 · 1 comment
Open

Cannot trigger a pipeline with variables GoCD v18.3.0 #8

standingb76 opened this issue Apr 26, 2018 · 1 comment

Comments

@standingb76
Copy link

standingb76 commented Apr 26, 2018

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)

@standingb76 standingb76 changed the title Cannot trigger a pipeline with variables Cannot trigger a pipeline with variables GoCD v18.3.0 Apr 26, 2018
@grundic
Copy link
Owner

grundic commented May 1, 2018

Hey,
Looks like ThoughtWork dropped support of obsolete api. Will try to fix it.
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