Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67806

Github plugin does not authenticate with HTTP proxy

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • github-plugin
    • None

      Currently when Github plugin is being used behind an HTTP proxy which requires authentication it fails to reach the Github server, since the username and password configured in Jenkins are not used by the Github plugin.

       

      Namely following error can be observed: 

       

       

      This makes it impossible to trigger the pipelines via Github webhooks when using Jenkins behind a proxy which requires authentication.

          [JENKINS-67806] Github plugin does not authenticate with HTTP proxy

          Sebastian added a comment - - edited

          I figured out that even though proxy settings are not taken into account from JENKINS config, you still can set proxy information through JVM parameters, like that

          JAVA_OPTS=-Djava.awt.headless=true -Djenkins.install.runSetupWizard=false -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=10.10.10.10 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="localhost|127.0.0.1|*.local|*.myself.com" -Dhttp.proxyUser=<HTTP-Proxy-User-Name> -Dhttp.proxyPassword=<HTTP-Proxy-User-Password> 

          On Linux machines you can configure the JAVA_OPTS like this:

          systemctl edit jenkins

          This workaround worked for me with Bitbucket plugin, so it might work with Github Plugin, too

           

           

          Sebastian added a comment - - edited I figured out that even though proxy settings are not taken into account from JENKINS config, you still can set proxy information through JVM parameters, like that JAVA_OPTS=-Djava.awt.headless= true -Djenkins.install.runSetupWizard= false -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=10.10.10.10 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts= "localhost|127.0.0.1|*.local|*.myself.com" -Dhttp.proxyUser=<HTTP-Proxy-User-Name> -Dhttp.proxyPassword=<HTTP-Proxy-User-Password> On Linux machines you can configure the JAVA_OPTS like this: systemctl edit jenkins This workaround worked for me with Bitbucket plugin, so it might work with Github Plugin, too    

            lanwen Kirill Merkushev
            the_cool_drop Vanio Begic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: