简体   繁体   中英

how to get time of execution in rundeck and use it in another job?

I've been searching does rundeck supports jobs dependencies?

That's what I found Does rundeck support jobs dependencies? so I need to get the time of execution of job-1 in rundeck and use it in another job-2 to run it with a cron after the time of execution of job-1.

I think that the best way is using 'time' command on your steps and use it on some global option ( https://docs.rundeck.com/docs/administration/configuration/configuration-file-reference.html#global-execution-variables ): How do I get just real time value from 'time' command?

Also, you can use Execution Data vars for use it on a notification. Check it: https://docs.rundeck.com/docs/developer/notification-plugin.html#execution-data you can play with ${execution.dateStarted} and ${execution.dateEnded}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM