Cant use jjb to update jobs


API tocken is ok and still get following error

jenkins-jobs --allow-empty-variables --conf ../../../jenkins_conf/upstream.conf
test . ovirt-node-ng__build-artifacts
Traceback (most recent call last):
File "/usr/bin/jenkins-jobs", line 10, in <module>
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line 179, in
execute(options, config)
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line 351, in
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line
333, in update_jobs
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line
230, in load_files
self.parser = YamlParser(self.global_config, self.plugins_list)
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line
226, in plugins_list
self._plugins_list = self.jenkins.get_plugins_info()
File "/usr/lib/python2.7/site-packages/jenkins_jobs/", line
190, in get_plugins_info
raise e
jenkins.JenkinsException: Error in request. Possibly authentication
failed [403]: Forbidden
INFO:jenkins_jobs.builder:Cache saved

Eyal Edri
Associate Manager
RHV DevOps
EMEA ENG Virtualization R&D
Red Hat Israel

phone: +972-9-7692018
irc: eedri (on #tlv #rhev-dev #rhev-integ)


Evgheni Dereveanchin
August 19, 2016, 9:24 AM

Should not be directly related as jjb uses Jenkins API which is core functionality. What's the user and jjb version that you are using? I fetched the source code to check how jjb requests plugin info to try and reproduce it directly. Logs revealed no info so far.

Evgheni Dereveanchin
August 19, 2016, 11:12 AM

I just tested the ... function against Jenkins successfully with the following versions:
python-jenkins 0.4.11
jenkins-job-builder 1.4.0

The test script was as simple as this and it worked properly:

import jenkins
server = jenkins.Jenkins(url='', username='ederevea', password='******')
plugins = server.get_plugins_info()
print plugins

I got a deprecation warning about get_plugins_info() but definitely no 403 errors, so I assume you are using the wrong password/token to connect.

Evgheni Dereveanchin
August 29, 2016, 8:46 AM

are you still getting the error?

Eyal Edri
August 29, 2016, 1:18 PM

I think I opened it following an email sent to infra, you can close for now and if someone will hit it they can open a new ticket.

Evgheni Dereveanchin
August 29, 2016, 1:24 PM

Ack, closing as I can't find the original email in any of the lists. Will re-open if we have more info on this.

Cannot Reproduce


Evgheni Dereveanchin


Eyal Edri

Blocked By