Hi,
I am trying to change the job result to "Failed" when a trigger is satisfied.
My job checks for the existence of a file (example file.1).
If file.1 does not exist, then run a task.
If file.1 exists, do not run task and change the job result to "Failed".
I can get the task to run or not run based the trigger (file.1 existing or not existing). This part is working fine. How do I change the job "result" to "Failed" (i.e. display "Failed" at the job level. I haven't been able to figure out how to do it by changing exit code (either at the task or job level).
Thank you,
Michael