title: jenkinsapi python - how to trigger and track the job result
body: <p>I am using <code>JenkinsAPI</code> to trigger parametrized jobs. I am aware of the REST API that Jenkins use, but our setup does not allow that directly; so the main mean for me to trigger jobs is through this library.</p>
  
  <p>So far I have no problems to find jobs on my server or trigger jobs, but I am facing 2 problems</p>
  
  <p>1) When I trigger a Job, I have no clue about its outcome. I assumed the output of the job would be returned when I run the <code>build_job</code> function but it is not the case. I need to know if that job did pass or fail, and I can't find a way to get this info, since I can't even retrieve the job number when I trigger it.</p>
  
  <p>2) I get an error when the job run, although the job does pass without issues:</p>
  
  <p><code>raise ValueError("Not a Queue URL: %s" % redirect_url)</code></p>
  
  <p>I did read a bit and seems that Jenkins is switching between http and https url, which confuse the library. If I understand correctly, it was deemed a Jenkins issue and as such, not fixed on the <code>JenkinsAPI</code> side.</p>
  
  <p>This is the code so far, it does connect to my jenkins server, does retrieve the list of jobs, does trigger a job, but does not allow me to know if the job pass or fail, and I get the error mentioned earlier.</p>
  
  <p>Any way to get this to work so I can get the pass/fail outcome of the job I triggered?</p>
  
  <pre><code>jenkins_url = 'http://myjenkins_host:8080'   
  # Create server
  server = Jenkins(jenkins_url, username='user', password='123456789abcdef')
  # Check job and print description
  for job_name, job_instance in server.get_jobs():
      if job_name == "testjob":
          print('Job Name:%s' % job_instance.name)
          print('Job Description:%s' % (job_instance.get_description()))
  
  # Trigger job
  params = {'a':1, 'b':2, 'c': True}
  server.build_job("testjob", params)
  # HOW do I get the result of this job???
  </code></pre>