title: Jenkins. How to get Trigger builds remotely data from POST BODY
body: <p>Jenkins. How to get Trigger builds remotely data from POST BODY</p>
  
  <p>Quay.io (private docker containers registry) has notification about build status through Webhook POST, data is in body. I tried to google and read Jenkins docs, but found only how to read parameters from URL. </p>
  
  <p>I found a plugin (Generic Webhook Trigger), which is capable to do it partially. It is able to work only with one link (http://{JENKINS_URL}/generic-webhook-trigger/invoke). And to start different jobs i need to use regexp. </p>
  
  <p>At the same time i need to set up minimum 3 notifications on quay.io and a lot of webhooks from different services. Maybe somebody knows how to set up in Jenkins such stuff:</p>
  
  <ol>
  <li>Create route like {JENKINS_URL}/jobName/ …</li>
  <li>Take whole parameters and write it down into $POST_DATA variable.</li>
  <li>Execute script with $POST_DATA parameter.
  Another manipulations i’m able to do myself in script.</li>
  </ol>