Python-Jenkins build job not working
<p>I want to trigger an build Job in Jenkins through python-jenkins package.
I am able to connect and get jenkins version and last successfull build number but when i request for a build job it gives an authentication error.</p>

<pre><code>&gt;&gt;&gt; import jenkins
&gt;&gt;&gt; server = jenkins.Jenkins('http://jenkinshost', 'ahmes', 'mytoken')
&gt;&gt;&gt; server.build_job('job-name', {'param1':'testvalue'},'mytoken')
</code></pre>

<p>Below is the error :</p>

<blockquote>
  <p>File "C:\Python27\lib\site-packages\jenkins__init__.py", line 914, in
  build_job
      self.build_job_url(name, parameters, token), b''))   File "C:\Python27\lib\site-packages\jenkins__init__.py", line 361, in
  jenkins_open
      e.code, e.msg) JenkinsException: Error in request. Possibly authentication failed [500]: Server Error</p>
</blockquote>

<p>I was able to get the last build number there shouldn't be a authentication error .</p>