~shawn111/ols-jenkaas/pmr-one-shot

« back to all changes in this revision

Viewing changes to slave/update

  • Committer: Vincent Ladeuil
  • Date: 2016-10-10 14:14:45 UTC
  • mfrom: (223.1.12 u1-trusty)
  • Revision ID: vila+ols@canonical.com-20161010141445-44xiqtz4puptbrep
Merge the trusty remaining jobs with a default configuration based on their puppet definition and using the u1-trusty container

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
3
 
# While creating new slaves is preferred, this update already setup ones.
4
 
 
5
 
# FIXME: Should we share environment across jobs ? -- vila 2016-070=-29
 
3
# Get the configuration options
 
4
. ~/.config/jenkaas/environment
 
5
 
 
6
# While creating new slaves is preferred, this script also updates already
 
7
# setup ones.
 
8
 
 
9
# FIXME: Should we share environment across jobs ? -- vila 2016-07-29
6
10
APT_OPTS="--option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet --no-install-recommends"
7
11
 
8
12
sudo apt-get dist-upgrade ${APT_OPTS}
11
15
(cd  ~/jenkaas && bzr pull --overwrite)
12
16
(cd ~/tarmac && bzr pull --overwrite)
13
17
 
 
18
~/jenkaas/setup/slave-ols-vms-conf
 
19
 
14
20
if [ -d ~/secrets ] ; then
15
21
    (cd ~/secrets && bzr pull --overwrite)
16
22
    ~/jenkaas/slave/update-secrets