php client searchJobs method

Hi All,

I am using the latest jrs php client. To get job details I am using the following code:

$jobs = $this->_client->jobService()->searchJobs($uri); 

But the above code returns instance of JobSummary class. How do I get other details of the entire Job like trigger, source, repository destination etc ?



ashcsi1322's picture
Joined: Dec 6 2013 - 4:52am
Last seen: 8 years 1 month ago

1 Answer:

Hi ashcsi1322,

After you obtain a JobSummary, you can use its ID with the getJob method to obtain the full details of a scheduled job, as below:


$job_details = $c->jobService()->getJob($jobs[0]->id);
grantbacon's picture
Joined: Oct 23 2012 - 1:10pm
Last seen: 5 years 3 months ago