testlib.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:lago-workshop 作者: lago-project 项目源码 文件源码
def has_credentials_on_jenkins(jenkins_api, _uuid):
    headers = {'Content-Type': 'application/json'}
    path = 'credentials/store/system/domain/_/credential/%(uuid)s/api/json'
    url = jenkins_api._build_url(path, {'uuid': _uuid})
    request = Request(url, headers=headers)
    try:
        jenkins_api.jenkins_open(request)
        return _uuid
    except jenkins.NotFoundException:
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号