No method to get config.xml

Bug #809360 reported by Matthew-gertner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
Fix Released
Wishlist
Unassigned

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()

Revision history for this message
James Page (james-page) wrote :

Hi Matthew

Looks like a useful feature; we are aiming for a new release of python-jenkins at the end of the month so we should be able to include.

Please feel free to submit a patch or a merge proposal through launchpad.

Thanks

Changed in python-jenkins:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Matthew-gertner (matthew-gertner) wrote :
James Page (james-page)
Changed in python-jenkins:
status: Confirmed → Fix Committed
James Page (james-page)
Changed in python-jenkins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.