Hi, Jan-Benedict!
I am glad that you have figured this out.
Just some more suggestions.
You should not mismatch features of JJB and Jenkins itself. First
you find out how to do something with Jenkins, then - how to
implement this in JJB. JJB is just a template engine for Jenkins.
Also, there are 'static' and 'dynamic' parameters (if you can call
them this way): You can produce several jobs from a single
template statically using template parameters, or you can have
a job with parameters which are defined at runtime. Latter is your
case, as I see.
Also, from my experience, artifacts archival in Jenkins only
works normally for small files. For example, texts with job output
codes, file paths etc.
Larger files, such as produced from a build, better to upload to
some service designed specifically for that. For example,
artifactory, nexus, or just some remote NFS.