You can use this I believe. https://api.gocd.org/current/#pipeline-config
I've not used it. I've only set environment variables when scheduling pipelines using: https://api.gocd.org/current/#scheduling-pipelines The other option would be to use the following to add a Git repo to store your pipeline definitions: https://github.com/tomzo/gocd-json-config-plugin You can then define your pipelines in JSON and store them in Git. Any updates to environment variables can be updated/checked into your GIT repo and GoCD will automatically pull the changes. You can then decide how best to update the Git files. -Jeff On Fri, Nov 10, 2017 at 4:55 AM, Zukky Baig <[email protected]> wrote: > Hi all, > > We have a pipeline that has multiple stages with multiple jobs, on a > bi-daily basis we update the environment variables of the stages and jobs. > This is a tedious and error-prone task for the devs to complete. We are > looking at automating this and wanted to turn to the community to see > whether or not it is possible to send an API request to Go with our > environment variables, which would update our stages and jobs > automatically. > > We have looked in the Go CD API documentation but haven't been successful > in finding a solution, > > Thank you, > > Zukky. > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
