Re: Using HTTP Request plugin to remote control an IDE

2016-08-30 Thread Amaury Laurent


For information, this is the architecture I'm working on. The main problem 
was to make LabVIEW and Jenkins talk to each other... 
<https://lh3.googleusercontent.com/-jt_-qVhI4GE/V8WnnE9op9I/AUc/bZV6kdOp0sgqIGnPbILHciiedMdcQbG2QCLcB/s1600/Principe.png>


<https://lh3.googleusercontent.com/-jt_-qVhI4GE/V8WnnE9op9I/AUc/bZV6kdOp0sgqIGnPbILHciiedMdcQbG2QCLcB/s1600/Principe.png>

<https://lh3.googleusercontent.com/-jt_-qVhI4GE/V8WnnE9op9I/AUc/bZV6kdOp0sgqIGnPbILHciiedMdcQbG2QCLcB/s1600/Principe.png>



Le vendredi 12 août 2016 09:39:32 UTC+2, Amaury Laurent a écrit :
>
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/022673a0-bab0-45ba-b0ee-cea4f62d7680%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using HTTP Request plugin to remote control an IDE

2016-08-23 Thread Amaury Laurent
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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Using HTTP Request plugin to remote control an IDE

2016-08-12 Thread Amaury Laurent
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0943aef7-039a-4949-af2e-d79a42ea6590%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.