← Back to team overview

python-jenkins-developers team mailing list archive

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

 

i am having the same issue with adding new projects to a view

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