Merge lp:~ricardokirkner/ols-jenkaas/partial-setup into lp:~ols-jenkaas-admins/ols-jenkaas/trunk

Proposed by Ricardo Kirkner
Status: Work in progress
Proposed branch: lp:~ricardokirkner/ols-jenkaas/partial-setup
Merge into: lp:~ols-jenkaas-admins/ols-jenkaas/trunk
Prerequisite: lp:~ricardokirkner/ols-jenkaas/docker-on-host
Diff against target: 51 lines (+13/-0)
1 file modified
testing/setup-jenkaas (+13/-0)
To merge this branch: bzr merge lp:~ricardokirkner/ols-jenkaas/partial-setup
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+328807@code.launchpad.net

Commit message

allow setting up master/builder/slave separately

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

LGTM and no change in default behavior AFAICT.

review: Approve

Unmerged revisions

448. By Ricardo Kirkner

allow setting up master/builder/slave separately

447. By Ricardo Kirkner

run docker jobs directly on slave

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'testing/setup-jenkaas'
2--- testing/setup-jenkaas 2017-02-28 10:50:28 +0000
3+++ testing/setup-jenkaas 2017-08-09 20:35:37 +0000
4@@ -7,6 +7,8 @@
5 # get there, a few constraints are introduced to make sure the whole setup
6 # is fully automated.
7
8+TARGET=${1:-all}
9+
10 vm_conf () ols-vms config $1 $2
11 vm_status () ols-vms status $1
12 vm_stop () if [ `vm_status $1` = "RUNNING" ] ; then ols-vms stop $1 ; fi
13@@ -46,6 +48,8 @@
14 ols-vms config ${MASTER} testing.landing.user=$(bzr lp-login)
15 ols-vms config ${MASTER} testing.build.user=$(bzr lp-login)
16
17+if [ "${TARGET}" = "all" -o "${TARGET}" = "master" ]; then
18+
19 echo "===================== Setup master ========================"
20
21 ols-vms setup ${MASTER}
22@@ -66,6 +70,10 @@
23 ols-vms config ${SLAVE} testing.master=${MASTER_URL}
24 ols-vms config ${JOB_BUILDER} testing.master=${MASTER_URL}
25
26+fi
27+
28+if [ "${TARGET}" = "all" -o "${TARGET}" = "builder" ]; then
29+
30 echo "===================== Setup job builder ========================"
31
32 # Match production users/teams to the local dev needs (same as jenkins
33@@ -95,6 +103,10 @@
34 # Install the existing jobs
35 ols-vms shell ${JOB_BUILDER} '. ~/.profile && jenkins-jobs update jenkaas/jobs/'
36
37+fi
38+
39+if [ "${TARGET}" = "all" -o "${TARGET}" = "slave" ]; then
40+
41 echo "===================== Setup slave(s) ========================"
42
43 ols-vms setup ${SLAVE}
44@@ -110,6 +122,7 @@
45 ols-vms shell ${SLAVE} @testing/setup/seed-slave
46 testing/setup/seeded-slave ${SLAVE} ${JOB_BUILDER}
47
48+fi
49
50 # Give back a clickable link and let the fun begins.
51 echo "Jenkins master is at ${MASTER_URL}"

Subscribers

People subscribed via source and target branches