Parallel Job chains passing variables between the steps
i have a question about creating build pipelines with parallel execution.
First our goal:
The chain is: Create a vCloudInstance (Result is IP), Deploy to this vCloudInstance (using IP from previous step as parameter) and run Tests to this vCloudInstance (also using resulted IP from first step).
Our current configuration is:
1st Single Job for "Create a vCloudInstance" creating a file with IP as parameter.
2nd Single Job deploying our software as parametrized build with input parameter IP
3rd Single Job testing our software as parametrized build with input parameter IP
4th Job executing this three with using Conditional Run Plugin, conditionalbuild-step, ParametrizedBuildTrigger and Copy Artifacts plugin. Means first step is executed we copy the result file and if result file exists we pass it as "Paramaters from properies file".
Actually in single execution this is all fine, BUT for Copy Artifacts we us "Last stable build" so this will lead in parallel execution to problems because the 1st job Create vCloudInstance might be of different execution time and then maybe the two started instance of 4th might copy from the same build of 1st.
I tried to use "Specific Build Number", but i couldn't resolve to get the number of 1st triggered by 4th and even pass to Copy Artifacts.
I was also trying MultiJob configuration but there the same issue.
Is there any common way to solve this for parallel executions. As far as i understood also environment variables passing is not possible since each job has its own environment.
Is there a possibility to get a result object from a triggered job?
Any comments or help is highly appreciated, maybe we also trying the wrong way ...