You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2023. It is now read-only.
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>HTTP ERROR 403
Problem accessing /job/ICE/build. Reason:
Powered by Jetty://
===== Codes:
$job=$jenkins->getJob('ICE');
$builds = $job->getBuilds();
echo "Last Builds:\n";
foreach ($builds as $build) {
/**
*
* @var JenkinsApi\Item\Build $build
*/
echo "Result:" . $build->getResult() . "\n";
echo "Timestamp:" . $build->getTimestamp() . "\n";
}
echo $job->launch();
Results:
Last Builds:
<title>Error 403 No valid crumb was included in the request</title>Result:FAILURE
Timestamp:1499054331
Result:SUCCESS
Timestamp:1498065719
Result:SUCCESS
Timestamp:1497838451
Result:SUCCESS
Timestamp:1497836036
Result:FAILURE
Timestamp:1497618011
Result:FAILURE
Timestamp:1497597399
HTTP ERROR 403
Problem accessing /job/ICE/build. Reason:
Powered by Jetty://