jenkins charm needs proxy support for plugin installation

Bug #1356915 reported by Ryan Beisner on 2014-08-14
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jenkins (Juju Charms Collection)
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.

Ryan Beisner (1chb1n) wrote :
Ryan Beisner (1chb1n) wrote :

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"
f_dst="/var/lib/jenkins/proxy.xml"
f_tmp="/home/ubuntu/proxy.xml"
f_src="deploy-files/proxy.xml"

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"

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments