How to transfer a file parameter to sub jobs by build flow

23 views
Skip to first unread message

Yunping Zheng

unread,
Jul 9, 2015, 5:46:28 AM7/9/15
to jenkins...@googlegroups.com
Hi All,

I am newbie here,  i want to create a "Build Flow" job with some parallel sub jobs.
The sub jobs need a file parameter,  i want to trans a file from the main job to the sub jobs, do you know how to do that. very appreciate.

eg:  in the main job i have upload a file using "File Parameter"
     Inline image 1
I want trans this file to sub jobs like:
 bulid("mySubJobName", param1 :  params["ServiceConfig"]

I found it only transfer a String to the sub job.

def ext = extension.'build-flow-concurrent-extensions'
def myparams = new HashMap(params) // define some parameters
myparams.put("ServerNode", "SLAVE")
myparams.put("RunType", "Suite")
myparams.put("Moduld", "Smoking-Test.xml")
build(myparams, "mySubJobName")

Thanks,
Panos
Reply all
Reply to author
Forward
0 new messages