Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Launch with empty parameters failed #20

@liberchen

Description

@liberchen

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:

    No valid crumb was included in the request


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:
Result:FAILURE
Timestamp:1499054331
Result:SUCCESS
Timestamp:1498065719
Result:SUCCESS
Timestamp:1497838451
Result:SUCCESS
Timestamp:1497836036
Result:FAILURE
Timestamp:1497618011
Result:FAILURE
Timestamp:1497597399

<title>Error 403 No valid crumb was included in the request</title>

HTTP ERROR 403

Problem accessing /job/ICE/build. Reason:

    No valid crumb was included in the request


Powered by Jetty://

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions