20.39. kb-00038: Expand Templates from Failed Job¶
20.39.1. Knowledge Base Article: kb-00038¶
20.39.2. Description¶
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.
20.39.3. 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
20.39.4. Additional Information¶
Additional resources and information related to this Knowledge Base article.
20.39.4.1. See Also¶
Web Portal Jobs menu, and rendered templates on each Job Log
20.39.4.2. Versions¶
all
20.39.4.3. Keywords¶
rendered templates, jobs, job log
20.39.4.4. 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