← Back to team overview

python-jenkins-developers team mailing list archive

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

 

Wrong formulation - I verified that new_config variable includes the new
name (jenkins didn't although python-jenkins didn't raise any
exception).

I'm using it here:
https://github.com/bregman-arie/jcli/blob/master/jcli/executor/view.py#L86

Versions:

Jenkins - 1.656
python-jenkins 0.4.13

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