Download the PHP package thusithawijethunga/jenkins-laravel-api without Composer
On this page you can find all versions of the php package thusithawijethunga/jenkins-laravel-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thusithawijethunga/jenkins-laravel-api
More information about thusithawijethunga/jenkins-laravel-api
Files in thusithawijethunga/jenkins-laravel-api
Package jenkins-laravel-api
Short Description Jenkins Laravel API
License MIT
Homepage https://github.com/thusithawijethunga/jenkins-laravel-api
Informations about the package jenkins-laravel-api
Jenkins Larave API
Jenkins Laravel API is a set of classes designed to interact with Jenkins CI using its API.
Installation
The recommended way to install Jenkins Laravel API is through Composer.
Then, run the Composer command to install the latest version:
In bash terminal
In windows cmd terminal
or Update your composer json
Basic Usage
or
Before anything, you need to instantiate the client :
Update your Laravel Env File
or update config file
If your Jenkins needs authentication, you need to pass a URL like this : 'http://user:[email protected]:8080'
.
Generate Api Token
Here are some examples of how to use it:
Import Api Class
Get the job information
Get All Jobs
Launch a Job
List the jobs of a given view
Get All Views
List builds and their status
Check if Jenkins is available
Get Jenkins Version
Using Facade
For more information, see the Jenkins API.
Coding standards
This projects follows PSR-0, PSR-1, PSR-2, PSR-4
TODO
- createJob function need confirm