{"action":"created","issue":{"url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/471","repository_url":"https://api.github.com/repos/pycontribs/jenkinsapi","labels_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/471/comments","events_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/471/events","html_url":"https://github.com/pycontribs/jenkinsapi/issues/471","id":170610408,"number":471,"title":"can not use get_job()","user":{"login":"sky-sea","id":4610609,"avatar_url":"https://avatars.githubusercontent.com/u/4610609?v=3","gravatar_id":"","url":"https://api.github.com/users/sky-sea","html_url":"https://github.com/sky-sea","followers_url":"https://api.github.com/users/sky-sea/followers","following_url":"https://api.github.com/users/sky-sea/following{/other_user}","gists_url":"https://api.github.com/users/sky-sea/gists{/gist_id}","starred_url":"https://api.github.com/users/sky-sea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sky-sea/subscriptions","organizations_url":"https://api.github.com/users/sky-sea/orgs","repos_url":"https://api.github.com/users/sky-sea/repos","events_url":"https://api.github.com/users/sky-sea/events{/privacy}","received_events_url":"https://api.github.com/users/sky-sea/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pycontribs/jenkinsapi/labels/bug","name":"bug","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-11T10:04:08Z","updated_at":"2016-08-21T05:06:56Z","closed_at":null,"body":"```python\r\nfrom jenkinsapi.jenkins import Jenkins\r\n\r\nif __name__ == '__main__':\r\n    server = Jenkins('http://172.29.88.114:8989/jenkins', username='xxx', password='xxx')\r\n    #server.build_job('deploy-EN-cloud-mail',{'VERSION':'1.0.0', 'DEPLOY_PATH':'/home/cloud/jenkins2/tomcat/webapps/jenkins/deploy_script'})\r\n    #print server.get_running_builds()\r\n    #print server.get_build_console_output('deploy-EN-cloud-mail', 19)\r\n    server.get_job('test')\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"F:\\eclipsespace\\test\\demo.py\", line 9, in <module>\r\n    server.get_job('deploy-EN-cloud-mail')\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jenkins.py\", line 139, in get_job\r\n    return self.jobs[jobname]\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jobs.py\", line 81, in __getitem__\r\n    return Job(None, job_name, self.jenkins)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\job.py\", line 78, in __init__\r\n    JenkinsBase.__init__(self, self.url)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jenkinsbase.py\", line 35, in __init__\r\n    self.poll()\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\job.py\", line 134, in poll\r\n    data = super(Job, self).poll(tree=tree)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jenkinsbase.py\", line 59, in poll\r\n    data = self._poll(tree=tree)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jenkinsbase.py\", line 69, in _poll\r\n    return self.get_data(url, tree=tree)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\jenkinsbase.py\", line 78, in get_data\r\n    response = requester.get_url(url, params)\r\n  File \"C:\\Python27\\lib\\site-packages\\jenkinsapi\\utils\\requester.py\", line 100, in get_url\r\n    return requests.get(self._update_url_scheme(url), **requestKwargs)\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\api.py\", line 71, in get\r\n    return request('get', url, params=params, **kwargs)\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\api.py\", line 57, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\sessions.py\", line 460, in request\r\n    prep = self.prepare_request(req)\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\sessions.py\", line 393, in prepare_request\r\n    hooks=merge_hooks(request.hooks, self.hooks),\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\models.py\", line 294, in prepare\r\n    self.prepare_url(url, params)\r\n  File \"C:\\Python27\\lib\\site-packages\\requests\\models.py\", line 357, in prepare_url\r\n    raise InvalidURL(\"Invalid URL %r: No host supplied\" % url)\r\nrequests.exceptions.InvalidURL: Invalid URL u'http:///jenkins/test/api/python': No host supplied\r\n```"},"comment":{"url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/comments/241239331","html_url":"https://github.com/pycontribs/jenkinsapi/issues/471#issuecomment-241239331","issue_url":"https://api.github.com/repos/pycontribs/jenkinsapi/issues/471","id":241239331,"user":{"login":"lechat","id":154792,"avatar_url":"https://avatars.githubusercontent.com/u/154792?v=3","gravatar_id":"","url":"https://api.github.com/users/lechat","html_url":"https://github.com/lechat","followers_url":"https://api.github.com/users/lechat/followers","following_url":"https://api.github.com/users/lechat/following{/other_user}","gists_url":"https://api.github.com/users/lechat/gists{/gist_id}","starred_url":"https://api.github.com/users/lechat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lechat/subscriptions","organizations_url":"https://api.github.com/users/lechat/orgs","repos_url":"https://api.github.com/users/lechat/repos","events_url":"https://api.github.com/users/lechat/events{/privacy}","received_events_url":"https://api.github.com/users/lechat/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T05:06:56Z","updated_at":"2016-08-21T05:06:56Z","body":"Opened issue with Jenkins: https://issues.jenkins-ci.org/browse/JENKINS-37576"}}
{"actor":{"display_login":"lechat"}}