chbiel / jenkins-php-api Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jenkins-khan/jenkins-php-api
PHP API for Jenkins
This project forked from jenkins-khan/jenkins-php-api
PHP API for Jenkins
To write probable UnitTests, there need to be an API Wrapper that makes writing UnitTests easier.
foreach ($this->getJenkins()->getExecutors() as $executor) {
...
}
getExecutors() is not a method of Jenkins
Hi,
Nice to see some more stuff added to this. Just a quick one - the second example of launch in the readme should use launchAndWait, not launch.
/mikke
When I tried to get the task from the display, I got an error types
It's impossible to get "console output" for the selected build via the \JenkinsApi\Item\Build::getConsoleTextBuild
method.
https://github.com/chbiel/jenkins-php-api/blob/master/src/JenkinsApi/Item/Build.php#L225
The problem is that \JenkinsApi\Jenkins::get
method tries to process the response data with the json_decode
function and throws an exception (because received data is a plain text)
https://github.com/chbiel/jenkins-php-api/blob/master/src/JenkinsApi/Jenkins.php#L166
Maybe we could add additional parameter to the \JenkinsApi\Jenkins::get
method like $raw = false
and run the json_decode
function depending on this parameter?
public function get($url, $depth = 1, $params = array(), array $curlOpts = [], $raw = false)
When I try to launch a job with empty parameters, I got below response:
<title>Error 403 No valid crumb was included in the request</title>Problem accessing /job/ICE/build. Reason:
No valid crumb was included in the request
Results:
Last Builds:
Result:FAILURE
Timestamp:1499054331
Result:SUCCESS
Timestamp:1498065719
Result:SUCCESS
Timestamp:1497838451
Result:SUCCESS
Timestamp:1497836036
Result:FAILURE
Timestamp:1497618011
Result:FAILURE
Timestamp:1497597399
Problem accessing /job/ICE/build. Reason:
No valid crumb was included in the request
There should be UnitTests... :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.