Download the PHP package productsupcom/jenkins-php-api without Composer
On this page you can find all versions of the php package productsupcom/jenkins-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download productsupcom/jenkins-php-api
More information about productsupcom/jenkins-php-api
Files in productsupcom/jenkins-php-api
Package jenkins-php-api
Short Description Library to control Jenkins via PHP through JSON api
License proprietary
Homepage https://github.com/productsupcom/jenkins-php-api
Informations about the package jenkins-php-api
Jenkins PHP API
This version of the Jenkins PHP API is based on https://github.com/jenkins-khan/jenkins-php-api. It's more OOP (means a clearer API) than the original and has some more features.
It wraps the API calls of the Jenkins API.
Getting started
First you need to instantiate the connection:
If your Jenkins needs authentication, you need to pass a URL like this : 'http://user:[email protected]:8080'
.
There are always two ways to instanciate an item and get the data you want:
- Use the classes directly (
new Job('myjob', $jenkins)
). In this case you have to instanciate Jenkins first and pass it as second constructor argument. - Use methods of Jenkins:
(new Jenkins('myurl'))->getJob('myjob')
Get the color of the job
Launch a Job
Will launch the job and return imidiatly
Will launch the job and wait until the job is finished
List the jobs of a given view
List builds and their status
Check if Jenkins is available
For more information, see the Jenkins API.
All versions of jenkins-php-api with dependencies
php Version >=5.5.0