Added vagrant setup for a Jenkins system for ONAP
Add a set of vagrant scripts that will set up a
local Jenkins environment with pre-defined jobs
to build all the ONAP java code and docker images.
Change-Id: I67ed254bcb38a7be989b7c2861fd3ea4ec9c66f2
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
diff --git a/bootstrap/jenkins/vagrant/build-all-docker.sh b/bootstrap/jenkins/vagrant/build-all-docker.sh
new file mode 100755
index 0000000..081bb12
--- /dev/null
+++ b/bootstrap/jenkins/vagrant/build-all-docker.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# build all jobs
+cd ~jenkins
+for d in jobs/docker*; do
+ JOB=$(basename "$d")
+ echo build "$JOB"
+ java -jar jenkins-cli.jar -s http://localhost:8080/ -auth jenkins:jenkins build "$JOB"
+done