Looking for some ideas on how to share data between jobs and triggers.
Currently I have one script that handles all of our triggers, I’ve found that using PSScriptInfo for some additional metadata and dumping job output via Get-PSUJobOutput seems to work okay for what I’m using it for right now.
Our trigger script is mainly responsible for creating tickets in our ITSM system if some of the jobs fail, but I am working on a job that will need more flexibility, and I still want one trigger script to be responsible for each, so currently I’m thinking that putting an object on the pipeline that the trigger script can pick up and use is the best scenario for my use-case.
Are some of you doing a similar thing, and is there something more rigid (built-in maybe?) that can be used in place of just putting objects in the job’s pipeline?
Using this I can filter from the Job Pipeline on Deserialized.System.Management.Automation.InformationRecord and then the Tag (In case something else wrote to the information stream) like this: