On Wed, Feb 26, 2020 at 08:03:52 -0800, Константин Ильченко wrote: > On *build* stage I want to read a ./version file in some kind of a shared > variable, like $VERSION, and use it instead of $GO_PIPELINE_LABEL on every > other stage. Is this possible without creating and fetching artifacts?
I assume you're looking for something more than: "source ./version; docker build --rm -t local/dummy:$GO_PIPELINE_LABEL ." ? Typically, the only way to share information between stages is to use artifacts. External artifact plugins allow environment variables to be set, which affect other tasks within a job, but a standard artifact is probably the most straightforward way. Cheers, Aravind -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/20200227090800.g66wkm2rwtwkhguy%40arvindsv.com.
