title: Jenkins throws 502 Bad Gateway upon pushing build status to Bitbucket via Bitbucket Server Notifier Plugin
body: <ul>
  <li>I have my repo on Bitbucket Server (stash).</li>
  <li>I have single job on Jenkins server.</li>
  <li>I have Bitbucket Server Notifier Plugin for Jenkins
  installed and configured (to push build status to Bitbucket).</li>
  <li>I can telnet to my Bitbucket Server URL from Jenkins machine.</li>
  <li>I can access my Bitbucket Server URL via the browser from Jenkins machine.</li>
  </ul>
  <p>However Bitbucket Server Notifier fails with error 502: Bad gateway - DNS error:</p>
  <pre><code>Notifying Bitbucket at &quot;https://my.bitbucket.server.url&quot;
  Failed to notify Bitbucket for commit g55f45daf0ce678588171ef45g55h34g44 (&lt;html&gt;&lt;head&gt;&lt;title&gt;502 Bad Gateway&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;&lt;h1&gt;DNS error&lt;/h1&gt;
  &lt;p&gt;DNS error (the host name of the page you are looking for does not exist)&lt;br&gt;&lt;br&gt;Please check that the host name has been spelled correctly.&lt;br&gt;&lt;/p&gt;
  &lt;!--Zscaler/6.0--&gt;&lt;/body&gt;&lt;/html&gt;
  )
  Finished: SUCCESS
  </code></pre>
  <p>I feel like it might be proxy issue. Can anyone advice please?</p>