python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00244
[Bug 1518356] Re: python-jenkins api run_script() error
it is okay
You can close it
--
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/1518356
Title:
python-jenkins api run_script() error
Status in Python Jenkins:
New
Bug description:
Hello,
I think that I found a bug on python jenkins api.
I am working on a project and i use python-jenkins api. But i have a
pb. Indeed, when i try to run a script inside my python script like
the example it does not works.
import jenkins
from jenkins import Jenkins
jenkins_url = 'http://localhost:8080'
server = Jenkins(jenkins_url, username, password)
info = server.run_script("println(Jenkins.instance.pluginManager.plugins)")
print(info)
I have this error when i run the script :
File "/usr/local/lib/python2.7/dist-packages/jenkins/init.py", line
928, in run_script "script=".encode('utf-8') +
script.encode('utf-8'))) File "/usr/local/lib/python2.7/dist-
packages/jenkins/init.py", line 361, in jenkins_open raise
NotFoundException('Requested item could not be found')
jenkins.NotFoundException: Requested item could not be found
Regards,
Dona
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1518356/+subscriptions
References