In a powershell build step in job1 in Jenkins I am filtering/calculating values that I want to use in Jenkins job2, also in a powershell build step. How can I do this? It is a Freestyle project.
I have tried using "This project is parameterized"/"Predefined parameters" giving the same names of the parameters in each job, with no luck.
I have also tried passing the parameters with $env:variable1, ${env:variable1}, $($env:variable1) with no luck.
I have also tried creating a global parameter in Jenkins and assigning/accessing it with no luck.
Ideas? :)