title: Getting the github webhook payload information inside Jenkins pipeline
body: <p>I need to access the github webhook payload information in my pipeline job through Jenkinsfile. I am able to print the payload using the below snippet:</p>
  
  <pre><code>properties ( [[$class: 'ParametersDefinitionProperty', parameterDefinitions: [[$class: 'StringParameterDefinition', defaultValue: '', description: '', name: 'payload']]]] )
  echo ("This build is built with the payload: $payload")
  </code></pre>
  
  <p>But this works only when I have defined the webhook for that specific job as below:</p>
  
  <pre><code>http://&lt;jenkins url&gt;/job/Demo_GitHubOrg/job/DemoRepo/branch/master//buildWithParameters
  </code></pre>
  
  <p>My pipeline job scans the given organization and automatically creates jobs/repo/branch.</p>
  
  <p>Is there a way to write a more generic webhook that will work for all jobs in my pipeline folder instead of writing one for every job as shown above?</p>