#NEWLINE# def fetch_artifact( self , jobstep , artifact_data ) : #NEWLINE# #INDENT# "\n        Fetch an artifact from a Jenkins job.\n\n        Args:\n            jobstep (JobStep): The JobStep associated with the artifact.\n            artifact_data (dict): Jenkins job artifact metadata dictionary.\n        Returns:\n            A streamed requests Response object.\n        Raises:\n            HTTPError: if the response code didn't indicate success.\n            Timeout: if the server took too long to respond.\n        " #NEWLINE# url = '{base}/job/{job}/{build}/artifact/{artifact}' . format ( base = jobstep . data [ 'master' ] , job = jobstep . data [ 'job_name' ] , build = jobstep . data [ 'build_no' ] , artifact = jobstep [ 'relativePath' ] ) #NEWLINE# return self . _streaming_get ( url )