Public bug reported:
Every so often, we get this running a job via this API stoack:
Traceback (most recent call last):
File "jenkins-api-util/jenkins-api-util.py", line 590, in <module>
build_info = server.get_build_info(job_full_name, this_build_number)
File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 482, in
get_build_info
self._build_url(BUILD_INFO, locals())
File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 447, in
jenkins_open
e.code, e.msg)
jenkins.JenkinsException: Error in request. Possibly authentication failed
[401]: Invalid password/token for user: some_user
Completed at 09/28/2018 05:43 AM
Our code:
# Track build progress
if build_info['building']:
logging.info("Job has started, waiting until
completion")
while build_info['building']:
logging.info("Status: building...")
time.sleep(5)
build_info =
server.get_build_info(job_full_name, this_build_number)
It is very infrequent and hard to rack down
** Affects: python-jenkins
Importance: Undecided
Status: New
--
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/1794979
Title:
Infrequent authentication failed messages
Status in Python Jenkins:
New
Bug description:
Every so often, we get this running a job via this API stoack:
Traceback (most recent call last):
File "jenkins-api-util/jenkins-api-util.py", line 590, in <module>
build_info = server.get_build_info(job_full_name, this_build_number)
File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 482, in
get_build_info
self._build_url(BUILD_INFO, locals())
File "/usr/lib/python2.7/site-packages/jenkins/__init__.py", line 447, in
jenkins_open
e.code, e.msg)
jenkins.JenkinsException: Error in request. Possibly authentication failed
[401]: Invalid password/token for user: some_user
Completed at 09/28/2018 05:43 AM
Our code:
# Track build progress
if build_info['building']:
logging.info("Job has started, waiting until
completion")
while build_info['building']:
logging.info("Status: building...")
time.sleep(5)
build_info =
server.get_build_info(job_full_name, this_build_number)
It is very infrequent and hard to rack down
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1794979/+subscriptions
--
Mailing list: https://launchpad.net/~python-jenkins-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~python-jenkins-developers
More help : https://help.launchpad.net/ListHelp