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/05a66fe7-2392-47ba-8b61-fb303e4ee748%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
