标签:
相应的URL是http://<JENKINS_URL>/user/<userid>/configure
from jenkinsapi.jenkins import Jenkins def get_server_instance(): jenkins_url = ‘http://<username>:<api-token>@<jenkins-server>/‘ server = Jenkins(jenkins_url) return server if __name__ == ‘__main__‘: print get_server_instance().version
标签:
原文地址:http://my.oschina.net/donhui/blog/502742