title: How to post votes on custom labels from jenkins gerrit trigger?
body: <p>I'm using jenkins gerrit-trigger plugin. It does trigger the job. The problem is that after job is finished jenkins cannot send review becasue I have no 'verified' label in gerrit.</p>
  
  <p>I found that in configuration there is <em>Gerrit Reporting Values</em> section (Jenkins -> Manager -> Gerrit Trigger -> Click on your gerrit "edit" button).
  In that section there are hardcoded subsections for "Verify" and "Code Review". Another subsection is "Gerrit Verified Commands" with commands like:</p>
  
  <pre><code>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message 'Build Successful &lt;BUILDS_STATS&gt;'  --verified &lt;VERIFIED&gt; --code-review &lt;CODE_REVIEW&gt;
  </code></pre>
  
  <p><strong>How I can add custom labels here?</strong></p>
  
  <p>I've tried to change commands to something like:</p>
  
  <pre><code>gerrit review &lt;CHANGE&gt;,&lt;PATCHSET&gt; --message 'Build Successful &lt;BUILDS_STATS&gt;'  --acceptance-tests $ACCEPTANCE_TESTS_VOTE --code-quality $CODE_QUALITY_VOTE
  </code></pre>
  
  <p>From docs:</p>
  
  <blockquote>
    <p>The variables  and  will have the values defined above. The variable  will have the URL to the build result. </p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>You can also use any environment variable from the build that was started with the $ENV_VAR syntax. </p>
  </blockquote>
  
  <p><strong>How to add new "parameter" like  or how to pass environment variable?</strong></p>
  
  <p>I've tried to use <code>EnvInject</code> plugin, but it seems the environment variable is not filled with value (the error message from jenkins says that there is no $VAR parameter).</p>