Skip to content

Expand Templates from Failed Job

How to expand templates from a task (job) that may have failed.

Note

This procedure shows how to do it via API. The Web Portal will show rendered templates from a Job, in the Jobs Log menu section.

Solution

If you have a task/template that has failed, once it's been run by the Job system, you can collect the rendered template. The rendered template will be in JSON format, so it may be hard to parse.

# set Endpoint and User/Pass appropriately for your environment
export RS_ENDPOINT="https://127.0.0.1:8092"
export RS_KEY="rocketskates:r0cketsk8ts"

# get your Job ID from the failed job, and set accordingly:
JOBID="abcdefghijklmnopqrstuvwxyz"
curl -k -u $RS_KEY $RS_ENDPOINT/api/v3/jobs/$JOBID/actions > $JOBID.json

# optional - if you have the remarshal tools installed:
json2yaml $JOBID.json > $JOBID.yaml

Additional Information

Additional resources and information related to this Knowledge Base article.

See Also

  • Web Portal Jobs menu, and rendered templates on each Job Log

Versions

all

Keywords

rendered templates, jobs, job log

Revision Information

KB Article     :  kb-00038
initial release:  Wed Jun 10 12:52:03 PDT 2020
updated release:  Wed Jun 10 12:52:03 PDT 2020