This article shows, how to read the log from a job and searching for a specific string. The next step depends on finding the string in the logfile.
In the example you find a job chain named job_chain_example_search_text The job chain has 2 steps.
- executing of myJob
- examining the log of task myJob. If searchstring "looking for text example" exists going to success. Otherwise going to error.
This is the job myJob. As you can see it produces the output job_chain_example_search_text
This is the job chain with the two steps
The second step has the parameters for the search.
In the postprocessing of the second step you see the code for switching to error or to success
You can download the example from here: download Example