title: Transforming curl request job in failure/success in jenkins
body: <p>I'm running a curl command in jenkins, but independently of the results, jenkins always turns the job in a success.</p>
  
  <p>How can I turn the job status in success/failure depending on the curl result?</p>
  
  <p>This is my curl request inside a execute shell block from jenkins:</p>
  
  <pre><code>curl -X GET http://api...
  </code></pre>