bash - Rundeck sharing variables across job steps -


i want share variable across rundeck job steps.

  1. initialized job option "target_files"
  2. set variable on step 1.

    rd_option_target_files=some bash command
    echo $rd_option_target_files
    value printed here.

  3. 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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -