title: Use the tag in GitLab webhook in jenkins build
body: <p>I have a webhook in GitLab to trigger a Jenkins job when ever a new tag is created. Is there a way to use the new tag that triggered the Jenkins job in the Jenkins job? For example, lets say I pushed the tag <code>v.1.5</code> to my repo.</p>
  
  <pre><code>git tag -a v1.5 -m "version 1.5"
  git push --tags
  </code></pre>
  
  <p>Now, I want to use the tag <code>v.1.5</code> in the shell execution in the Jenkins build (Execute shell).</p>
  
  <pre><code>echo &lt;tag that triggered this job&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/oJWcx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oJWcx.png" alt="Jenkins build"></a></p>
  
  <p>Is there a way to read and use the tag from the POST request?</p>