add2Queue not working properly

I wish to be able to trigger builds using different parameters; the URL http://<my-tc-server>/httpAuth/action.html?add2Queue=<build-type-id>&environment=<string> should do what I want. But when I invoked this URL, I got a job using the default setting for "environment" rather than the one I submitted.

Please do not suggest I click the "Run Custom Build" button, this is intended to be run from a remote process without user interaction.

If anyone has managed to implement this using perl with LWP to submit, please let me know. So far, I have not been able to configure the correct user authentication; the only thing that works for me is in bash shell:
curl -u <user:password> http://TC-URL

Thanks in advance.

Please sign in to leave a comment.