• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • core, docker-plugin
    • RHEL 7

      I am trying to use jenkins slave behind the corporate proxy to fetch data from the internet. However when I run jobs in the slave, it is not able to connect to the internet. the slave environment has http_proxy, https_proxy and non proxy setup. If I login to the machine directly, I am able to run the curl/ping google and fetch data from the internet easily. but the same command if I run in the build step in a execute shell step, the connections times out, showing not able to connect to internet. I have setup proxy everywhere, including the java arguments and the issue doesn't seem to resolve. Any help to fix this issue is appreciated.

          [JENKINS-43550] Jenkins slave does not work behind http_proxy

          Oleg Nenashev added a comment -

          Please provide information about the agent type you use at least. If it is an SSH agent, likely this user is not configured properly. It is unlikely defect in Jenkins, maybe worth asking in the Jenkins users ML instead

          Oleg Nenashev added a comment - Please provide information about the agent type you use at least. If it is an SSH agent, likely this user is not configured properly. It is unlikely defect in Jenkins, maybe worth asking in the Jenkins users ML instead

          Sudin Shakya added a comment -

          It is an ssh agent. We are trying to use it with docker container to dynamically increase the slaves.

          Sudin Shakya added a comment - It is an ssh agent. We are trying to use it with docker container to dynamically increase the slaves.

          when you say "If I login to the machine directly" do you mean you ssh the container like jenkins does, or enter the container with `docker exec`, or maybe just the underlying host ?

          please note a SSH session don't inherit sshd environment, so if your docker image is configured with ENV or ran with additional --env, in both case those won't be exported to the ssh session.

          Nicolas De Loof added a comment - when you say " If I login to the machine directly " do you mean you ssh the container like jenkins does, or enter the container with `docker exec`, or maybe just the underlying host ? please note a SSH session don't inherit sshd environment, so if your docker image is configured with ENV or ran with additional --env, in both case those won't be exported to the ssh session.

          pjdarton added a comment -

          Closing due to lack of response.

          pjdarton added a comment - Closing due to lack of response.

            Unassigned Unassigned
            user_sdn Sudin Shakya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: