title: Jenkins - Execute Shell Build Step Not Working
body: <p>I'm trying to create a job in Jenkins that will execute a simple shell script.  However, it seems that Jenkins isn't actually doing anything with my script.  No matter what value I put into the <strong>Execute Shell Command</strong> section, Jenkins always says that it passes.  Even if I put in a bogus filename like "RandomBogusFilename.sh" it'll say the job was a success.</p>
  
  <p>Can anyone point out what I'm doing wrong and how I can get Jenkins to actually use my shell script?</p>
  
  <p>The shell script, the job config, and the console output are all shown below.  I'm currently trying to do this on a <strong>Windows Server 2008 R2 Standard</strong> machine.</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <h2>My .sh file</h2>
  
  <p><strong>File Name:</strong> surveyToolRequest.sh<br>
  <strong>File Location:</strong> /jobs/Jeff Shell Script Test/workspace<br>
  <strong>Description:</strong>
  Hit a web address and retrieve the HTTP Response.  Then print out the HTTP Response.  </p>
  
  <hr>
  
  <pre><code>#!/bin/bash
  
  response_code=$(curl -s -o /dev/null -w "%{http_code}" http://SOME-WEBSITE.COM)
  echo "The response code is " $response_code  
  </code></pre>
  
  <hr>
  
  <p><br/></p>
  
  <hr>
  
  <h2>My Jenkins Job Config</h2>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/1CnCn.png" alt="Jenkins Job Config"></p>
  
  <hr>
  
  <p><br/></p>
  
  <hr>
  
  <h2>Jenkins Console Output</h2>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/iADdE.png" alt="enter image description here"></p>
  
  <hr>