How can I pass a file parameter via buildWithParameters remote trigger?

686 views
Skip to first unread message

Arve Knudsen

unread,
Feb 10, 2011, 4:47:27 AM2/10/11
to jenkins...@googlegroups.com
Hi

I want to trigger parameterized builds remotely via Jenkins' HTTP API for this purpose, i.e. http://$SERVER/job/$JOB/buildWithParameters?$PARAMETER=$Value. However, one of my parameters is of the File type. Is it possible at all to pass files for parameter values using this HTTP API? According to for example a comment on the Jenkins wiki, Jenkins reacts with internal server errors when one tries to send files like this :(

Thanks!
Arve

Basim Baassiri

unread,
Feb 10, 2011, 9:31:08 AM2/10/11
to jenkins...@googlegroups.com
How are you sending files? did you try posting to that url and base64encode the file?

Arve Knudsen

unread,
Feb 11, 2011, 9:07:19 AM2/11/11
to jenkins...@googlegroups.com
Hi Basim

Can you provide an example of how one could pass a file parameter via http://$SERVER/job/$JOB/buildWithParameters, if you think it doable?

Thanks!
Arve
Reply all
Reply to author
Forward
0 new messages