-
Notifications
You must be signed in to change notification settings - Fork 7
Set a job result to env vars
Taichiro Suzuki edited this page Oct 23, 2018
·
5 revisions
You can set a job result to environment variables that can be used in the next job.
See this example.
main:
commands:
- echo "The result is $RESULT"
depends_on:
-
job: ruby_job
env: RESULT
ruby_job:
commands:
- ruby -e 'puts 1 + 5'
The result of ruby_job
is '6'. The result is set to $RESULT
and the result of main
job is "This result is 6".