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

preventRemoteBuildQueue bug when remote job never have been build #12

@philippe-granet

Description

@philippe-granet

When preventRemoteBuildQueue option is activated and the remote job never have been build, job failed with this error:
Got a blank response from Remote Jenkins Server, cannot continue.
In fact, you call an url /lastBuild on that job that return HTTP 404 because no build exists:

        // get the ID of the Next Job to run.
        if (this.getPreventRemoteBuildQueue()) {
            listener.getLogger().println("Checking that the remote job " + jobName + " is not currently building.");
            String preCheckUrlString = this.buildGetUrl(jobName, securityToken);
            preCheckUrlString += "/lastBuild";
            preCheckUrlString += "/api/json/";

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