bash - Rundeck sharing variables across job steps -
i want share variable across rundeck job steps.
- initialized job option "target_files"
set variable on step 1.
rd_option_target_files=some bash command
echo $rd_option_target_files
value printed here.read variable step 2.
echo $rd_option_target_files
step 3 doesn't recognize variable set in step 1.
what's way of doing on rundeck other using environment variables?
after rundeck 2.9, there data capture plugin allow pass data between job steps.
the plugin contained in rundeck application default.
data capture plugin match regular expression in step’s log output , pass values later steps
details see data capture/data passing between steps (published: 03 aug 2017)
Comments
Post a Comment