V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wanxi3
V2EX  ›  Python

Python 操作 Jenkins 报 500

  •  
  •   wanxi3 · 2017-02-20 17:20:35 +08:00 · 3792 次点击
    这是一个创建于 2619 天前的主题,其中的信息可能已经有所发展或是发生改变。
    python 操作 Jenkins 遇到
    jenkins.JenkinsException: Error in request. Possibly authentication failed [500]: Internal Server Error
    谷歌了一下,貌似是个 bug
    有人遇到过么,最后怎么解决的
    3 条回复    2017-02-21 12:11:02 +08:00
    trdcaz
        1
    trdcaz  
       2017-02-21 00:56:17 +08:00 via iPhone
    看报错是认证失败啊

    另外 Jenkins 有两个流行的库,你用的是哪个库啊
    wanxi3
        2
    wanxi3  
    OP
       2017-02-21 10:40:21 +08:00
    @trdcaz 不是认证失败, server = jenkins.Jenkins(jenkins_url, username=user_id, password=api_token)
    print server.reconfig_job('xxxx', xml)
    就这个接口,我其他的 get 类接口都没问题
    maemo
        3
    maemo  
       2017-02-21 12:11:02 +08:00
    看一下 jenkins 的 log ,我之前也遇到过类似错误。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3665 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:46 · PVG 18:46 · LAX 03:46 · JFK 06:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.