← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1642641] Re: Unable to rename view with reconfig_view

 

What version of jenkins and python-jenkins are you using?  Also how did
you verify that new_config changed?  If the config.xml file changed then
python-jenkins is working as expected.  Jenkins itself might be having
issues reloading the view/job.

-- 
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/1642641

Title:
  Unable to rename view with reconfig_view

Status in Python Jenkins:
  New

Bug description:
  I tried to run:

  name = "old"
  new_name = "new"
  server = jenkins.Jenkins(url, user, password)

  view_config = server.get_view_config(self.view_args.name)
  new_config = re.sub(r"<name>.*</name>", "<name>%s</name>" % "new_name", view_config)
  server.reconfig_view(name, new_config)

  But it has no effect. I verified that new_config changed and includes
  the new name.

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


References