~vila/byoci/trunk

« back to all changes in this revision

Viewing changes to testing/setup/seed-slave

  • Committer: Vincent Ladeuil
  • Date: 2016-08-04 14:51:12 UTC
  • mto: (89.11.1 u1-trusty)
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: vila+ols@canonical.com-20160804145112-a7jhcyxc6huu46rb
Introduce the 'production' and 'testing' name spaces and rework the scripts layout to better separate production and testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -ex
 
1
#!/bin/sh -e
2
2
 
3
3
# In production, this is achieved by running the seed-<slave name> job.  For
4
4
# testing, we do that manually to be able to inject an existing ssh key to
7
7
sudo rm -fr ~jenkins/.bazaar
8
8
sudo rm -fr ~jenkins/.ssh
9
9
sudo rm -fr ~jenkins/jenkaas
10
 
sudo su - jenkins -c 'bzr branch {jenkaas.jobs} jenkaas'
11
 
sudo su - jenkins -c '~/jenkaas/slave/seed'
 
10
sudo su - jenkins -c 'bzr branch {{jenkaas}.jobs} jenkaas'
 
11
sudo su - jenkins -c '~/jenkaas/setup/seed-slave'
12
12
 
13
13
# For tests, we need to create nested lxd containers (the jenkins slaves
14
14
# being lxd containers already). As recommended at
16
16
# by making the nested containers privileged ones (relying on running inside
17
17
# an unprivileged one).
18
18
sudo su - jenkins -c 'lxc profile set default security.privileged true'
19
 
 
20