推荐学习书目
› 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 · Feb 20, 2017 · 4826 views
    This topic created in 3508 days ago, the information mentioned may be changed or developed.
    python 操作 Jenkins 遇到
    jenkins.JenkinsException: Error in request. Possibly authentication failed [500]: Internal Server Error
    谷歌了一下,貌似是个 bug
    有人遇到过么,最后怎么解决的
    3 replies  •  2017-02-21 12:11:02 +08:00
    trdcaz
        1
    trdcaz  
       Feb 21, 2017 via iPhone
    看报错是认证失败啊

    另外 Jenkins 有两个流行的库,你用的是哪个库啊
    wanxi3
        2
    wanxi3  
    OP
       Feb 21, 2017
    @trdcaz 不是认证失败, server = jenkins.Jenkins(jenkins_url, username=user_id, password=api_token)
    print server.reconfig_job('xxxx', xml)
    就这个接口,我其他的 get 类接口都没问题
    maemo
        3
    maemo  
       Feb 21, 2017
    看一下 jenkins 的 log ,我之前也遇到过类似错误。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5068 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 01:55 · PVG 09:55 · LAX 18:55 · JFK 21:55
    ♥ Do have faith in what you're doing.