Hi,

I'm trying to implement your suggestion. Pipeline plugin is really awesome!
I stil have some exception problems but it looks good!

By the way, I plan to make a small diagram to explain my project and its 
architecture.

Thank you for your help.

Regards, Amaury.

Le vendredi 12 août 2016 13:58:06 UTC+2, Martin d'Anjou a écrit :
>
> Sounds like you need to implement a couple of polling loops (a loop to 
> wait for the builder, a loop to query the status). I would do that in the 
> Pipeline DSL. That would be easier than modifying the plugin. For example:
>
> def response = httpRequest 'http://localhost:8080/'
> while (response.status != 200) {
>     sleep 5
>     response = httpRequest 'http://localhost:8080/'
> }
> // do something with the reponse
> println(response)
>
> // trigger another jenkins job
> build('otherJob')
>
>
> I do not know what you mean by "trigger a build". There is the Pipeline 
> DSL build() step which calls anothere jenkins job (
> https://jenkins.io/doc/pipeline/steps/workflow-support/#build-build-a-job), 
> but I am not sure if this is what you mean.
>
> Martin
>
> On Friday, August 12, 2016 at 3:39:32 AM UTC-4, Amaury Laurent wrote:
>>
>> Hi everyone,
>>  
>> I'm interested in using HTTP Request Plugin to remotely control our 
>> development environment.
>>
>> My objectives are:
>> 1-Waiting for my builder to start (maybe in Build Environment section of 
>> Jenkins)
>> 2-Trigger a build remotely
>> 3-Periodically query its status
>> 4-Retrieve build results from the server
>>  
>> Do you think possible to slightly modify the plugin to make it poll a web 
>> server until it gives the correct response ?
>> Will it be difficult to do (I'm not very experienced in Java development) 
>> ?
>>
>> Regards, Amaury LAURENT.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/7e5aceaa-8045-4f20-9f3e-a4d36874bb05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to