简体   繁体   中英

How do I access Rundeck Job execution number inside script?

Similar to accessing job options like:

#!/bin/bash
my_var=@option.my_var@

is there a way to access general job execution properties?

Specifically, I am deploying a docker container and would like to leverage the execution number to inject a link back to the rundeck job execution that was responsible for deploying said container

For that use

echo @job.execid@

You can see all options putting @job. in the inline script and Rundeck shows you all the options (autocomplete).

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