Hello,

I am working towards migrating our Build Flow DSL to Pipelines. I would
like to create some sort of migration document to help other people, since
I can't seem to find a straight-forward document anywhere quite yet.

I have figured most things out thanks to documentation and experimentation.
However, there is one thing I can't find the Pipeline equivalent for.

In our current Build Flow DSL, we execute builds of other jobs in parallel,
using code like below:

param = parallel ([
param1: {build (execution1, flow_job_1)},
param2: {build (execution2, flow_job_1)},
])

Once we finish executing those jobs, we need to grab an artifact from each
of those executions, which will then inform parameters for subsequent jobs.
We accomplish this currently by getting the build ID via the following
snippet, and then grabbing an artifact via http from the Jenkins server
itself.

param.param1.getLastBuild()

What is the Pipeline equivalent of the above snippet? How would I be able
to grab the build number of each of these parallel jobs using Pipelines? Or
alternatively, is there some sort of "artifact grabber" plugin where I can,
say, grab one of param1's artifacts and copy into the current workspace?
Even if there were, I don't know what I'd pass it, as I don't think the
build step plugin or parallel plugin returns anything at all besides
true/false.

Thanks for any help,
AJ

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKzFqnP2bGbD_ArABQaeC3Nd7c-iGdiGQ1zgS%2BrPckgza8J_NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to