php client searchJobs method

0

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

ashcsi1322's picture
Joined: Dec 6 2013 - 4:52am
Last seen: 4 years 3 months ago

1 Answer:

0

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: 1 year 5 months ago
Feedback
randomness