title: Bitbucket and Jenkins remote build trigger
body: <p><strong>What I am trying to achieve</strong></p>
  
  <p>Trigger a build from Bitbucket when a pull request is created using the remote trigger option in Jenkins. So I created a job in Jenkins and configured to trigger a build with the remote API.</p>
  
  <p><a href="https://i.stack.imgur.com/jN9zy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jN9zy.png" alt="Enter image description here"></a></p>
  
  <p>In Bitbucket I created a webhook to trigger the build with the following URL structure:</p>
  
  <pre><code>http://jenkins_server_ip:port/job/job-name/build?token=&lt;t1&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8"/&gt;
          &lt;title&gt;Error 403 No valid crumb was included in the request&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h2&gt;HTTP ERROR 403&lt;/h2&gt;
          &lt;p&gt;Problem accessing /job/android-sample/build. Reason:
  
              &lt;pre&gt;    No valid crumb was included in the request&lt;/pre&gt;
          &lt;/p&gt;
          &lt;hr&gt;
          &lt;a href="http://eclipse.org/jetty"&gt;Powered by Jetty:// 9.4.z-SNAPSHOT&lt;/a&gt;
          &lt;hr/&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I digged into the internet and some says that we need to use the <em>crumbIssuer</em> API in Jenkins which is done with <code>wget</code>. How can I use this in Bitbucket?</p>