I finally got some time to look around in the source code. It is caused by the changes for 1.485.

/**
     * Gets the read-only view of all the builds.
     * 
     * @return never null. The first entry is the latest build.
     */
    @Exported(name="allBuilds",visibility=-2)
    @WithBridgeMethods(List.class)
    public RunList<RunT> getBuilds() {
        return RunList.fromRuns(_getRuns().values());
    }

    /**
     * Gets the read-only view of the recent builds.
     *
     * @since 1.485
     */
    @Exported(name="builds")
    public RunList<RunT> getNewBuilds() {
        return getBuilds().newBuilds();
    }

The getBuilds() method used to be annotated with @Exported() and the getNewBuilds() method did not exist. getBuilds().newBuilds() filters out running builds on purpose:

/**
     * Reduce the size of the list by only leaving relatively new ones.
     * This also removes on-going builds, as RSS cannot be used to publish information
     * if it changes.
     */
    public RunList<R> newBuilds() { ... }

I don't know if this should still be considered a bug, since it looks like it is intended behaviour.
I can fix my code by asking for the (hidden) allBuilds property in the REST API.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to