Setting and Passing variable to a downstream pipeline

Skip to first unread message

Doug Farmer

Nov 12, 2015, 4:53:47 PM11/12/15
to go-cd

Anyone know how set within a script (shell) pass the variable/parameter from one pipeline to another? The scenario is something list this; pipeline A builds the product and creates the package with a given name which is generated within a shell script. Pipepline B has a shell script which takes the name of that artifact and the environment and deploys it. My issue is that from all the docs I've read nothing clearly outlines how best to handle this scenario. Hoping someone with more experience than me (~3 weeks) can help. 



Fredrik Wendt

Nov 12, 2015, 6:21:19 PM11/12/15
One way to accomplish this, is by passing along a simple "" artifact which you create in pipeline A. The you can easily fetch this from the A pipeline, and source/read it in your B pipeline's script.

You may also try using pipeline properties for this, but I've found that much harder to get right.

/ Fredrik

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
For more options, visit

+46 702 778511
Reply all
Reply to author
0 new messages