How to pass a job result as a job parameter

Hi!

I need your help because I am not able to figure out how to make what I want.

I have two jobs, one performs a validation that returns true or false, and the second job will run some validations (like tests and so on), the problem is that I need the second job to run ONLY if the first job returns true.

The problem is that I need to pass the first job result as a parameter to use it in job attribute “when”, because the second job will run lots of instances so I need to make sure to only run when the first job returns true.

Any ideas? Thanks!!!