Hi,
I am new to plugin developing and got stucked now. 

Suppose user  trigger a build with and file parameter. 

curl -vvv -X POST http://127.0.0.1:8080/jenkins/job/t/build \
  --form file0='@/tmp/foo.xml' \
  --form json='{"parameter": [{"name":"XML_PATH", "file":"file0"}]}'


In plugin, how can we save this* foo.xml *into job's workspace ?

Does anybody has experience on this ? 

I would like to extended *BuildWrapper* and rewrite the setUp method, but 
the *req* and *formData* are null. How can I get these two vars inside 
*BuildWrapper 
?*

FileParameterDefinition fd = new FileParameterDefinition("init_name", "my 
description");
fd.createValue(StaplerRequest req, JSONObject formData);


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/33879d6b-a5d1-439d-83c4-e30a974e5933%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to