Class JenkinsOkHttpClient

java.lang.Object
io.jenkins.plugins.okhttp.api.JenkinsOkHttpClient

public class JenkinsOkHttpClient extends Object
This class allows to take into consideration if Jenkins is running behind a proxy or not and return a proper OkHttpClient client.
  • Method Details

    • newClientBuilder

      public static okhttp3.OkHttpClient.Builder newClientBuilder(okhttp3.OkHttpClient httpClient)
      Generates a new builder for the given base client. It applies the current Jenkins.proxy configuration.
      Returns:
      a builder to configure the client