title: Git patchset-created hook get argument
body: <p>I am creating a patchset-created hook shell script. I am able to trigger a Jenkins job to run whenever I submit a new patch set to Gerrit server.</p>
  
  <p>Now, I wish to get argument and pass to Jenkins job through curl command. I am not sure how to achieve this and I give some try but unluckily, I couldn't get the argument passed successfully.</p>
  
  <p>Gerrit patchset-created hook parameter:</p>
  
  <pre><code>patchset-created --change &lt;change id&gt; --is-draft &lt;boolean&gt; --kind &lt;change kind&gt; --change-url &lt;change url&gt; --change-owner &lt;change owner&gt; --project &lt;project name&gt; --branch &lt;branch&gt; --topic &lt;topic&gt; --uploader &lt;uploader&gt; --commit &lt;sha1&gt; --patchset &lt;patchset id&gt;
  </code></pre>
  
  <p>My script:</p>
  
  <pre><code>#!/usr/bin/env sh
  #trigger Jenkin job with API token 
  curl -X POST http://&lt;username&gt;:&lt;API token&gt;@&lt;server&gt;/job/&lt;job name&gt;/build --data-urlencode json='{"parameter": [{"name":"change_id", "value":&lt;change id value&gt;}]}'
  </code></pre>
  
  <p>I would like to have the &lt; change id > from Gerrit hook parameter pass to "value":&lt; change id > and pass to Jenkins job through curl command. Anyone know how to get the argument?</p>