Starting Hudson job with parameters in URL

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Starting Hudson job with parameters in URL

Dinesh Patil-3
Hi,

We are currently using hudson to run benchmark jobs as downstream jobs
from trunk and release builds, so we basically create 2 hudson jobs for
same benchmark one for trunk and another for branch. So instead of doing
this way, is there another better way where we can pass parameters to
hudson job or environment variable so that it picks up bits to test from
parameter/env variable and runs the benchmarks on it?

We also need to create patch builds which will apply developer patches
and run benchmark on the patched bits, so thought of using this
parameters. please let me know if anyone has tried this option.

I tried matrix project, but it still may not have flexibility to start
only one of the axes job dynamically. I am sure this is common
requirement, so please share your experience, inputs if you have done
this type of configuration.

thanks
Dinesh

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Starting Hudson job with parameters in URL

Mike Salnikov
Unfortunately, it's not possible yet
RFE: https://hudson.dev.java.net/issues/show_bug.cgi?id=1613

----
Mike Salnikov
Senior Developer
Parallels | Optimized Computing


> -----Original Message-----
> From: Dinesh Patil [mailto:[hidden email]]
> Sent: Tuesday, July 01, 2008 6:08 AM
> To: [hidden email]
> Subject: Starting Hudson job with parameters in URL
>
> Hi,
>
> We are currently using hudson to run benchmark jobs as downstream jobs
> from trunk and release builds, so we basically create 2 hudson jobs for
> same benchmark one for trunk and another for branch. So instead of
> doing
> this way, is there another better way where we can pass parameters to
> hudson job or environment variable so that it picks up bits to test
> from
> parameter/env variable and runs the benchmarks on it?
>
> We also need to create patch builds which will apply developer patches
> and run benchmark on the patched bits, so thought of using this
> parameters. please let me know if anyone has tried this option.
>
> I tried matrix project, but it still may not have flexibility to start
> only one of the axes job dynamically. I am sure this is common
> requirement, so please share your experience, inputs if you have done
> this type of configuration.
>
> thanks
> Dinesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Starting Hudson job with parameters in URL

wtfwtf
I think I have a work-around.
kind of a hack, but I can invoke parametrized builds with a HTTP POST

wget -o /dev/null  --post-data="json={"parameter": {"name": "FOO", "value": "bar"}}&Submit=Build" http://localhost:8080/job/test/build

Mike Salnikov wrote
Unfortunately, it's not possible yet
RFE: https://hudson.dev.java.net/issues/show_bug.cgi?id=1613

----
Mike Salnikov
Senior Developer
Parallels | Optimized Computing


> -----Original Message-----
> From: Dinesh Patil [mailto:dpatil@yahoo-inc.com]
> Sent: Tuesday, July 01, 2008 6:08 AM
> To: users@hudson.dev.java.net
> Subject: Starting Hudson job with parameters in URL
>
> Hi,
>
> We are currently using hudson to run benchmark jobs as downstream jobs
> from trunk and release builds, so we basically create 2 hudson jobs for
> same benchmark one for trunk and another for branch. So instead of
> doing
> this way, is there another better way where we can pass parameters to
> hudson job or environment variable so that it picks up bits to test
> from
> parameter/env variable and runs the benchmarks on it?
>
> We also need to create patch builds which will apply developer patches
> and run benchmark on the patched bits, so thought of using this
> parameters. please let me know if anyone has tried this option.
>
> I tried matrix project, but it still may not have flexibility to start
> only one of the axes job dynamically. I am sure this is common
> requirement, so please share your experience, inputs if you have done
> this type of configuration.
>
> thanks
> Dinesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
> For additional commands, e-mail: users-help@hudson.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net
Reply | Threaded
Open this post in threaded view
|

Re: Starting Hudson job with parameters in URL

Lukas Rytz
Many thanks for the hint!

I had to change the quotes, and add the security token. It works with
multiple parameters.

wget -o /dev/null
--post-data="json={parameter:{name:'p1',value:'bar'},parameter:{name:'param_two',value:'value
two'}}&Submit=Build"
http://localhost/job/argtest/build?token=SECURITY_TOKEN

Note that default values are not picked up, missing parameters will
have an empty value.


Lukas


On Tue, Oct 21, 2008 at 10:44, wtfwtf <[hidden email]> wrote:

>
> I think I have a work-around.
> kind of a hack, but I can invoke parametrized builds with a HTTP POST
>
> wget -o /dev/null  --post-data="json={"parameter": {"name": "FOO", "value":
> "bar"}}&Submit=Build" http://localhost:8080/job/test/build
>
>
> Mike Salnikov wrote:
>>
>> Unfortunately, it's not possible yet
>> RFE: https://hudson.dev.java.net/issues/show_bug.cgi?id=1613
>>
>> ----
>> Mike Salnikov
>> Senior Developer
>> Parallels | Optimized Computing
>>
>>
>>> -----Original Message-----
>>> From: Dinesh Patil [mailto:[hidden email]]
>>> Sent: Tuesday, July 01, 2008 6:08 AM
>>> To: [hidden email]
>>> Subject: Starting Hudson job with parameters in URL
>>>
>>> Hi,
>>>
>>> We are currently using hudson to run benchmark jobs as downstream jobs
>>> from trunk and release builds, so we basically create 2 hudson jobs for
>>> same benchmark one for trunk and another for branch. So instead of
>>> doing
>>> this way, is there another better way where we can pass parameters to
>>> hudson job or environment variable so that it picks up bits to test
>>> from
>>> parameter/env variable and runs the benchmarks on it?
>>>
>>> We also need to create patch builds which will apply developer patches
>>> and run benchmark on the patched bits, so thought of using this
>>> parameters. please let me know if anyone has tried this option.
>>>
>>> I tried matrix project, but it still may not have flexibility to start
>>> only one of the axes job dynamically. I am sure this is common
>>> requirement, so please share your experience, inputs if you have done
>>> this type of configuration.
>>>
>>> thanks
>>> Dinesh
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Starting-Hudson-job-with-parameters-in-URL-tp18206154p20085898.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Starting Hudson job with parameters in URL

Naresh-11
Hello,

     is it possible to send file parameters in a similar manner?

Thanks,
Naresh

Lukas Rytz wrote:

> Many thanks for the hint!
>
> I had to change the quotes, and add the security token. It works with
> multiple parameters.
>
> wget -o /dev/null
> --post-data="json={parameter:{name:'p1',value:'bar'},parameter:{name:'param_two',value:'value
> two'}}&Submit=Build"
> http://localhost/job/argtest/build?token=SECURITY_TOKEN
>
> Note that default values are not picked up, missing parameters will
> have an empty value.
>
>
> Lukas
>
>
> On Tue, Oct 21, 2008 at 10:44, wtfwtf <[hidden email]> wrote:
>  
>> I think I have a work-around.
>> kind of a hack, but I can invoke parametrized builds with a HTTP POST
>>
>> wget -o /dev/null  --post-data="json={"parameter": {"name": "FOO", "value":
>> "bar"}}&Submit=Build" http://localhost:8080/job/test/build
>>
>>
>> Mike Salnikov wrote:
>>    
>>> Unfortunately, it's not possible yet
>>> RFE: https://hudson.dev.java.net/issues/show_bug.cgi?id=1613
>>>
>>> ----
>>> Mike Salnikov
>>> Senior Developer
>>> Parallels | Optimized Computing
>>>
>>>
>>>      
>>>> -----Original Message-----
>>>> From: Dinesh Patil [mailto:[hidden email]]
>>>> Sent: Tuesday, July 01, 2008 6:08 AM
>>>> To: [hidden email]
>>>> Subject: Starting Hudson job with parameters in URL
>>>>
>>>> Hi,
>>>>
>>>> We are currently using hudson to run benchmark jobs as downstream jobs
>>>> from trunk and release builds, so we basically create 2 hudson jobs for
>>>> same benchmark one for trunk and another for branch. So instead of
>>>> doing
>>>> this way, is there another better way where we can pass parameters to
>>>> hudson job or environment variable so that it picks up bits to test
>>>> from
>>>> parameter/env variable and runs the benchmarks on it?
>>>>
>>>> We also need to create patch builds which will apply developer patches
>>>> and run benchmark on the patched bits, so thought of using this
>>>> parameters. please let me know if anyone has tried this option.
>>>>
>>>> I tried matrix project, but it still may not have flexibility to start
>>>> only one of the axes job dynamically. I am sure this is common
>>>> requirement, so please share your experience, inputs if you have done
>>>> this type of configuration.
>>>>
>>>> thanks
>>>> Dinesh
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>        
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>
>>>      
>> --
>> View this message in context: http://www.nabble.com/Starting-Hudson-job-with-parameters-in-URL-tp18206154p20085898.html
>> Sent from the Hudson users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]