python - Jenkins doesn't load proxy configuration in the 'build environment' step -


i writing jenkins job runs python script. in order prepare environment, i'm using pyenv plugin. server behind proxy need setup proxy configuration able download dependencies. running job throws following error.

$ bash -c "[ -d \$home/.pyenv ]" installing pyenv... $ bash -c "git clone https://github.com/yyuu/pyenv.git \$home/.pyenv && cd \$home/.pyenv && git checkout master" initialized empty git repository in /var/lib/jenkins/.pyenv/.git/ error: failed connect github.com:443; operation in progress while accessing https://github.com/yyuu/pyenv.git/info/refs  fatal: http request failed fatal: (commanderror) failed: "git clone https://github.com/yyuu/pyenv.git \\$home/.pyenv && cd \\$home/.pyenv && git checkout master" org.jruby.exceptions.raiseexception: (commanderror) failed: "git clone https://github.com/yyuu/pyenv.git \\$home/.pyenv && cd \\$home/.pyenv && git checkout master"     @ ruby.run(/var/lib/jenkins/plugins/pyenv/web-inf/classes/lib/pyenv/invoke.rb:18)     @ ruby.install!(/var/lib/jenkins/plugins/pyenv/web-inf/classes/lib/pyenv.rb:47)     @ ruby.setup!(/var/lib/jenkins/plugins/pyenv/web-inf/classes/lib/pyenv.rb:20)     @ ruby.setup(/var/lib/jenkins/plugins/pyenv/web-inf/classes/models/pyenv_wrapper.rb:57)     @ ruby.setup(/var/lib/jenkins/plugins/pyenv/web-inf/classes/vendor/gems/gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model/environment_proxy.rb:8) 

i have tried setting http_proxy , https_proxy environment variables in following cases:

  • in /etc/environment file.
  • as global properties inside jenkins.
  • injecting them environment injector plugin.
  • different values variables: caps, , without http.

i tried rebotting jenkins after changes, didn't make difference.

if skip environment setup proxy works fine in execution. on other hand, ran same problem trying setup environment ruby script. looks proxy configuration not loaded build environment step.


Comments

  1. No answers until now. It seem no body working on this issue.

    ReplyDelete

Post a Comment

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -