← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 809360] Re: No method to get config.xml

 

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

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is the registrant for Python Jenkins.
https://bugs.launchpad.net/bugs/809360

Title:
  No method to get config.xml

Status in Python API for Jenkins:
  Fix Released

Bug description:
  I needed to get the config.xml for a job. This will probably be needed
  by others. I implemented my own function for now:

      def get_job_config(self, name):
          '''
          Get configuration of existing Jenkins job.

          @param name: Name of Jenkins job
          @type  name: str
          '''
          get_config_url = self.server + RECONFIG_JOB%locals()
          return urllib2.urlopen(get_config_url).read()

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