Let's say I have this config:
format_version: 9
pipelines:
dummy:
group: Research
label_template: "${git[:8]}"
materials:
git:
git: https://github.com/tommiv/jenkins-dummy-pipeline.git
branch: master
stages:
- build:
fetch_materials: true
jobs:
runner:
tasks:
- exec:
command: "/bin/sh"
arguments:
- "-c"
- "docker build --rm -t local/dummy:$GO_PIPELINE_LABEL ."
- deploy_stage:
jobs:
runner:
tasks:
- exec:
command: "/bin/sh"
arguments:
- "-c"
- "docker run -d -p '9900:3000' local/dummy:$GO_PIPELINE_LABEL"
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?
--
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/0c760790-98be-45f1-bbec-651764d7aa06%40googlegroups.com.