Search code examples
rundeck

How do I access Rundeck Job execution number inside script?


Similar to accessing job options like:

#!/bin/bash
[email protected]_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


Solution

  • 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).