php client searchJobs method
Posted on January 23, 2015 at 3:45am
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 ?
thanks
ashy
Joined: Dec 6 2013 - 4:52am
Last seen: 8 years 1 month ago
Posted on May 11, 2015 at 2:15pm
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);
Joined: Oct 23 2012 - 1:10pm
Last seen: 5 years 3 months ago