You can read the JSON with this plugin:

  https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin


Den onsdag 7 december 2016 kl. 14:15:12 UTC+1 skrev Oli Spicer:
>
> I work in a .NET environment with Team Foundation Server on premises for 
> version control.  I recently configured a Jenkins server to integrate test 
> automation etc...
>
> My aim is to trigger a Jenkins Build when my TFS Build has succeeded, 
> which I have done.
>
> My problem is this:  
>   To trigger the Jenkins Build, I use a Team foundation Web-hook which 
> essentially sends an HTTP Post request to the Jenkins REST API, launching 
> the build.  
>   The contents of the post request ( JSON ) contains information on the 
> TFS build which I need, but I have yet to find a way to access the 
> information and use it in Jenkins.
>   
>   Does anyone know of a solution to this problem ? To be able to read the 
> contents of an HTTP request and use it in a build ?
>
>   If not, then I plan on developing a plugin to make this possible.
>   If anyone knows of a good place to get started on developing a plugin, 
> any information would be much appreciated.
>
> Thank you,
>
> Oliver
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/8f1df500-23f9-4018-8ac9-2665df7a8d0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to