title: jenkins Job Status via Curl
body: <p>I need to get job build status failure or success via curl command.
  I tried this : </p>
  
  <pre><code>curl --silent http://user:TokenID@Jenkins-BuildURL/job/job_number/api/json | jq -r '.result'
  </code></pre>
  
  <p>Unable to execute the curl.</p>