summaryrefslogtreecommitdiff
path: root/vm-create
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-08-26 22:54:49 +0100
committerLars Wirzenius <liw@liw.fi>2012-08-26 22:54:49 +0100
commit3f175a98cb064c262561e44c25c402b341f721d9 (patch)
tree719d54e5b07e71e80c44d10a17cda8e301730930 /vm-create
parent45d664460a4913e3de49e362824e66bfeaad11ea (diff)
downloadjenkinstool-3f175a98cb064c262561e44c25c402b341f721d9.tar.gz
Build worker images as well (sid-amd64 for now)
Diffstat (limited to 'vm-create')
-rwxr-xr-xvm-create12
1 files changed, 10 insertions, 2 deletions
diff --git a/vm-create b/vm-create
index 8a21465..8fd5510 100755
--- a/vm-create
+++ b/vm-create
@@ -30,6 +30,14 @@ do
fi
done
-# Create the Jenkins master image.
-vmdebootstrap --config vm-data/common.conf --config vm-data/jenkins.conf "$@"
+# Create the images
+for flavor in jenkins sid-amd64
+do
+ conf="vm-data/$flavor.conf"
+ img=$(awk '$1 ~ /^image[:=]?/ { print $NF }' "$conf")
+ if [ ! -e "$img" ]
+ then
+ vmdebootstrap --config vm-data/common.conf --config "$conf" "$@"
+ fi
+done