Merge lp:~canonical-platform-qa/qa-jenkins-jobs/proxy-optional into lp:qa-jenkins-jobs

Proposed by Max Brustkern
Status: Work in progress
Proposed branch: lp:~canonical-platform-qa/qa-jenkins-jobs/proxy-optional
Merge into: lp:qa-jenkins-jobs
Diff against target: 26 lines (+6/-3)
1 file modified
jobs/ubuntu-system-tests/ubuntu-system-tests-builder.sh (+6/-3)
To merge this branch: bzr merge lp:~canonical-platform-qa/qa-jenkins-jobs/proxy-optional
Reviewer Review Type Date Requested Status
Canonical Platform QA Jenkins Pending
Review via email: mp+306140@code.launchpad.net

Commit message

Make https_proxy optional

Description of the change

Set https_proxy only if it isn't set, and push the file to the phone only if it isn't empty. (Technically, we may want to rewrite the file we push to the phone if it's set to something different, but that probably won't come up any time soon.)

To post a comment you must log in.

Unmerged revisions

180. By Max Brustkern

Added comment

179. By Max Brustkern

'If https_proxy is set to , don't use a proxy

178. By Allan LeSage

1SS devices access the internet via https_proxy using upstart set-env.

Approved by Max Brustkern, platform-qa-bot.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'jobs/ubuntu-system-tests/ubuntu-system-tests-builder.sh'
2--- jobs/ubuntu-system-tests/ubuntu-system-tests-builder.sh 2016-09-16 20:33:25 +0000
3+++ jobs/ubuntu-system-tests/ubuntu-system-tests-builder.sh 2016-09-19 18:53:36 +0000
4@@ -22,16 +22,19 @@
5 EOF
6 cat $CONFIG_PATH
7
8+# Use 1SS proxy unless it's otherwise defined
9+export https_proxy=${https_proxy-https://squid.internal:3128/}
10+
11 # 1SS lab internet access via proxy
12-adb -s $ANDROID_SERIAL push ./qa-jenkins-jobs/jobs/ubuntu-system-tests/https-proxy.conf /home/phablet/.config/upstart/https-proxy.conf
13+if [ -n "$https_proxy" ] ; then
14+ adb -s $ANDROID_SERIAL push ./qa-jenkins-jobs/jobs/ubuntu-system-tests/https-proxy.conf /home/phablet/.config/upstart/https-proxy.conf
15+fi
16
17 # let's work in a virtualenv
18 rm -rf ve3
19 virtualenv --system-site-packages --python=python3 ve3
20 . ve3/bin/activate
21
22-export https_proxy=https://squid.internal:3128/
23-
24 rm -rf ubuntu-system-tests
25 bzr branch $UBUNTU_SYSTEM_TESTS_BRANCH ubuntu-system-tests
26 cd ubuntu-system-tests

Subscribers

People subscribed via source and target branches