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

preventRemoteBuildQueue bug when remote job never have been build #12

Open
philippe-granet opened this issue Dec 15, 2015 · 0 comments
Open

Comments

@philippe-granet
Copy link

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/";
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant