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

http proxy are ignored by git operations for loading pipeline libraries

      Our Jenkins sits behind a firewall, so we have to configure a proxy to access external resources, also git repositories.

      After upgrading from 2.89.4 to above LTS I noticed that pipeline jobs were hanging because they failed to fetch the Jenkinsfile from a git repo. It turned out that proxy settings were not used. I managed to work around that by disabling "Lightweight Checkout".

      After that the pipeline failed to load libraries, again because of missing proxy settings.

      All the problematic repositories could be cloned by "plain" git checkout steps, so my proxy setting are in fact correct, they are just not applied.

       

      many thanks, Holger

       

          [JENKINS-51039] http proxy are ignored by git operations for loading pipeline libraries

          Holger Partsch created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Component/s Original: git-plugin [ 15543 ]
          Andrew Bayer made changes -
          Component/s New: workflow-cps-global-lib-plugin [ 21714 ]
          Component/s Original: pipeline [ 21692 ]

          I'm hitting the exact same issue, the pipeline job ignores proxy settings and fails to fetch the jenkinsfile

          Fernando Crespo added a comment - I'm hitting the exact same issue, the pipeline job ignores proxy settings and fails to fetch the jenkinsfile
          Dmitriy Belyaev made changes -
          Comment [ Same issue here. Standard jobs (not pipeline) are not facing any problems and can checkout from bitbucket's git repo, while pipeline is having troubles (ignores proxy settings). ]
          Vivek Pandey made changes -
          Labels Original: jenkins pipeline New: jenkins pipeline triaged-2018-11

            Unassigned Unassigned
            hpartsch Holger Partsch
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: