Do not initialize Request headers with bytestring.
Closes-Bug: 1781381 Change-Id: I14fcf165988bfe5fadf680d31152327eccbab5f5
This commit is contained in:
parent
876a2a928c
commit
6b757a7c36
@ -1498,7 +1498,7 @@ class Jenkins(object):
|
|||||||
"""
|
"""
|
||||||
folder_url, short_name = self._get_job_folder(name)
|
folder_url, short_name = self._get_job_folder(name)
|
||||||
self.jenkins_open(requests.Request('POST',
|
self.jenkins_open(requests.Request('POST',
|
||||||
self._build_url(DELETE_BUILD, locals()), b''))
|
self._build_url(DELETE_BUILD, locals())))
|
||||||
|
|
||||||
def wipeout_job_workspace(self, name):
|
def wipeout_job_workspace(self, name):
|
||||||
"""Wipe out workspace for given Jenkins job.
|
"""Wipe out workspace for given Jenkins job.
|
||||||
@ -1508,7 +1508,7 @@ class Jenkins(object):
|
|||||||
folder_url, short_name = self._get_job_folder(name)
|
folder_url, short_name = self._get_job_folder(name)
|
||||||
self.jenkins_open(requests.Request('POST',
|
self.jenkins_open(requests.Request('POST',
|
||||||
self._build_url(WIPEOUT_JOB_WORKSPACE,
|
self._build_url(WIPEOUT_JOB_WORKSPACE,
|
||||||
locals()), b''))
|
locals())))
|
||||||
|
|
||||||
def get_running_builds(self):
|
def get_running_builds(self):
|
||||||
'''Return list of running builds.
|
'''Return list of running builds.
|
||||||
|
Loading…
Reference in New Issue
Block a user