Skip to content

DisableRedirectHandling in JenkinsHttpClient #235

@amcginn

Description

@amcginn

When calling a GET for job//<build#>/toggleLogKeep, I get an exception thrown:
org.apache.http.client.CircularRedirectException: Circular redirect to 'https:///job//<build#>/toggleLogKeep/api/'

If I edit the source code in JenkinsHttpClient.addAuthentication(HttpClientBuilder builder, URI uri, String username, String password) to add HttpClientBuilder.disableRedirectHandling(), this prevents the Exception from being thrown and allows me to toggle the "Keep build forever" functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions