← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1177831] Re: build_job with parameters fails since POST is not used.

 

Reviewed:  https://review.openstack.org/122462
Committed: https://git.openstack.org/cgit/stackforge/python-jenkins/commit/?id=44eb4fe69cb9a32f1674945376a05913267d94b5
Submitter: Jenkins
Branch:    master

commit 44eb4fe69cb9a32f1674945376a05913267d94b5
Author: Terry Howe <terrylhowe@xxxxxxxxx>
Date:   Thu Sep 18 10:31:34 2014 -0600

    Fix it so build_job triggers a build
    
    The build_job method would not trigger a build because it
    would do a GET on the build URL rather than a POST.  Adding
    a body causes it to do a POST.
    
    Change-Id: Idf40e462f970122234f85b5d1d2e72d178b5b39f
    Closes-Bug: 1177831


** Changed in: python-jenkins
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1177831

Title:
  build_job with parameters fails since POST is not used.

Status in Python API for Jenkins:
  Fix Committed

Bug description:
  Jenkins requires a POST when a job URL has parameters.  Since python-
  jenkins does not pass urllib2.urlopen a data value a GET is used
  instead.  This results in a failure and the Jenkins error page is
  returned.

  To reproduce this bug:

  - Create a job with parameters.
  - In ipython:
  import jenkins
  j = jenkins.Jenkins(url)
  j.build_job(job_name, {param : value})

  This will fail.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1177831/+subscriptions


References