jenkins charm needs proxy support for plugin installation
Bug #1356915 reported by
Ryan Beisner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Juju Charms Collection) |
New
|
Undecided
|
Unassigned |
Bug Description
Issue:
Charm deployment and plugin installation fails when the jenkins deployment is behind an http proxy, and plugins are specified.
Feature request:
Implement charm config options and hooks for creating the proxy.xml file. It's worth noting that setting the http_proxy env variable has no effect on the jenkins plugin installer.
Attachments:
Sample proxy.xml file is attached.
To post a comment you must log in.
FYI - A workaround for Serverstack:
#!/bin/bash -xe
# FYI, set env var if juju enviro is needed, ex: export jenv="-e beis0"
master="jenkins/0" /var/lib/ jenkins/ proxy.xml" /home/ubuntu/ proxy.xml" deploy- files/proxy. xml"
f_dst="
f_tmp="
f_src="
if [ ! -f "$f_src" ]; then
echo "Local proxy source file not found."
exit 1
fi
juju scp ${jenv} $f_src ${master}:${f_tmp}
juju ssh ${jenv} ${master} "sudo cp -f ${f_tmp} ${f_dst} &&\
stat ${f_dst} &&\
sudo service jenkins restart &&\
sudo status jenkins"