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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?