Write files with the desired parameters in the "build" job, archive the
files, and unarchive them in the downstream job. Then you can read the
parameters stored in the file. Here's a sketch how we do it:
In the upstream job:
def downstreamParams = [:]
downstreamParams.foo = 'bar'
downstreamParam
We have a build and deploy process for every artifact(it is not a maven
build, and not a maven arifact). If build or deploy for a single artifact
fails it should not stop the whole process.
We have a separate jobs for build and deploy. Build jobs can work in
parallel on a slaves, deploy not.