python-jenkins api run_script() error

Bug #1518356 reported by Dona
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Jenkins
New
Undecided
Unassigned

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

Revision history for this message
Dona (g-poubelle) wrote :

it is okay
You can close it

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.