--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to rundeck-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/919db261-b40f-44e5-b4ce-a58eca63d0c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Honor
[Rundeck | a...@rundeck.com ]
Hi Krzysztof,Yes, I believe that should be possible now with 2.9 using the Log Filter and Key Value capture. What version are you running?
On Fri, Sep 8, 2017 at 12:52 PM, Krzysztof Barański <kma...@gmail.com> wrote:
Hi
Is there a way to pass arguments to next job in workflow from environment variable of other (main) job bash script?
In my case I want to generate in bash argument and pass it to all dependent jobs in workflow (date & hour of starting the workflow)
using current time in each job in workflow is not appropriate because if I schedule job at 5:55 next job could start 6:05 so will have different run argument
There is no way to pass current date as an option to job - then It would be possible to pass it to next job it this way:
Screen: Edit JobSection: Workflow
Job Name/Group: Task1
Arguments: -referenceTime "${option.referenceTime}" -timeShift "${option.timeShift}"
Thanks
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To post to this group, send email to rundeck...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/919db261-b40f-44e5-b4ce-a58eca63d0c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to rundeck-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/de8fc4b0-c517-4321-abbc-b3053053e3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/de8fc4b0-c517-4321-abbc-b3053053e3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/tmp/31-13-localhost-dispatch-script.tmp.sh: line 3: ${data.reftime}: bad substitution
timeShift=-1 hour
#!/bin/bash
echo referenceTime="@option.referenceTime@"
echo timeShift="@option.timeShift@"
#!/bin/bash
set -x
echo "@data.reftime@"
2017-09-08 23:30:49+00:00
command parameter data.reftime=2017-09-08 23:30:49+00:00
Key Value Data: Results
Key Value
reftime 2017-09-08 22:50:14+00:00
starttime 20170908/2100
endtime 20170908/2200
/tmp/41-16-localhost-dispatch-script.tmp.sh: line 3: ${data.reftime}: bad substitution