502034: install plugin dependencies when installing matrix plugin

Change-Id: Id3377ac2fd1080ecb7462e7f1423ad46af95a6dc
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=502034
Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
diff --git a/org.eclipse.mylyn.hudson.releng/modules/hudson/manifests/site.pp b/org.eclipse.mylyn.hudson.releng/modules/hudson/manifests/site.pp
index 878e8ca..8e66afb 100644
--- a/org.eclipse.mylyn.hudson.releng/modules/hudson/manifests/site.pp
+++ b/org.eclipse.mylyn.hudson.releng/modules/hudson/manifests/site.pp
@@ -4,9 +4,9 @@
 	$data,
 	$port,
 	$version,
-  $allbasicauth = false,
-  $certauth = false,
-  $digestauth = false,
+	$allbasicauth = false,
+	$certauth = false,
+	$digestauth = false,
 	$base = $hudson::base,
 	$envinfo = "",
 	$envdefault = false,
@@ -93,6 +93,16 @@
   }
   
   if $matrixPlugin {
+	exec { "install JUnit plugin for $envbase":
+	  command => "wget -P $envbase/plugins http://updates.jenkins-ci.org/download/plugins/junit/1.20/junit.hpi",
+ 	  cwd => "$envbase",
+	  user => "$userOwner",
+	}
+	exec { "install script security plugin for $envbase":
+	  command => "wget -P $envbase/plugins http://updates.jenkins-ci.org/download/plugins/script-security/1.13/script-security.hpi",
+ 	  cwd => "$envbase",
+	  user => "$userOwner",
+	}
   	exec { "install matrix plugin for $envbase":
 	  command => "wget -P $envbase/plugins http://updates.jenkins-ci.org/download/plugins/matrix-project/1.7.1/matrix-project.hpi",
  	  cwd => "$envbase",