ben schwartz
ben schwartz

Reputation: 2589

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

Upvotes: 0

Views: 826

Answers (1)

MegaDrive68k
MegaDrive68k

Reputation: 4380

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

Upvotes: 1

Related Questions