I want to write some plugin code that must run a system command to capture information that will be used in the configuration of a task.
I’ve tried the following steps:
1 configure that Task b depends on task a
2. Task a (Exec) runs the system command and stores the output
3. Task b reads the stored output from task a and uses it to configure itself
But of course, step 3 happens too late. What is the best way to make the configuration of task b update itself after the execution of Task a so it is correctly configured when it runs? Or is there a way to gather the information from the system without making a task out of it?
I’ve tried different forms of lazy evaluation and they haven’t worked.
Can someone point to an example where something like this is done?