You can just use something like this:

curl -s -X POST --user $CREDS -H "$CRUMB" 
$SERVER/job/$JOB/lastBuild/input/FinishRecording/proceedEmpty
(the url is shown in console output or stage view)

the corresponding pipeline step :
input id: 'FinishRecording', message: 'Proceed?'

https://jenkins.io/doc/pipeline/steps/pipeline-input-step/


Am Freitag, 12. August 2016 16:20:48 UTC+2 schrieb Daniel Watrous:
>
> I've searched and can't figure out how to "POST approval to it from an 
> external tool".
>
> I suppose this is the main thing I've been stuck on from the beginning and 
> why I'm looking for an API or some other plugin. It seems obvious to you 
> that I should be able to just POST to some jenkins based URL. Is there a 
> document somewhere describing how this works?
>
> I'm also interested in the GET call so I can know that there is a POST to 
> do. In other words, I need to know that something is waiting and that I 
> should POST.
>
> Thank you.
>
> On Friday, August 5, 2016 at 4:45:08 PM UTC-5, Jesse Glick wrote:
>>
>> On Fri, Aug 5, 2016 at 5:19 PM, Daniel Watrous <daniel....@gmail.com> 
>> wrote: 
>> > That might work, but what isn't clear is how I can trigger that with an 
>> HTTP 
>> > call. 
>>
>> `UnprotectedRootAction` generally. 
>>
>> Without writing a custom plugin, and without waiting for 
>> JENKINS-27127, the usual approach is to use an `input` step and POST 
>> approval to it from an external tool. (JENKINS-33793 would also make 
>> it more convenient, though the principal use case there is for manual 
>> approvals from HTML links.) 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/d4116249-9122-4622-97f3-d6a465051f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to