Merge "Remove deprecated pcep "all" feature from throughpcep carbon jobs"
[releng/builder.git] / jenkins-scripts / builder.sh
index dbb4942b7fbb4de2adf63c951baf66b9e0c663f5..d607757aa4a2cd315e0ac37258453f33a6b1ef38 100755 (executable)
@@ -1,17 +1,61 @@
 #!/bin/bash
+# vim: sw=2 ts=2 sts=2 et :
 
 yum clean all
 
-# add in mono components for VTN
-yum install -y yum-utils
-#The following is needed for the new code in vtn project.
-#these packages will enable C# compilation.
-rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
-#Added the mono tools repository
-yum-config-manager -q -y --add-repo http://origin-download.mono-project.com/repo/centos6
-#Install the nuget binary
-yum install -q -y http://origin-download.mono-project.com/repo/centos/n/nuget/nuget-2.8.3+md58+dhx1-0.noarch.rpm
-#install the mono toolchain
-yum -q -y install mono-complete
+#
+# Integration/Packaging
+#
+
+# Install software for building RPMs
+yum install -y fedora-packager
+
+# Install software for building docs
+yum install -y libxslt-devel
+
+# disable the firewall
+/bin/bash ./disable_firewall.sh
+
+# install sshpass
+yum install -y sshpass
 
 # vim: sw=2 ts=2 sts=2 et :
+# Installation of Hbase
+mkdir /tmp/Hbase
+cd /tmp/Hbase
+
+wget --no-verbose http://apache.osuosl.org/hbase/hbase-0.94.27/hbase-0.94.27.tar.gz
+
+echo "Installing the Hbase Server..."
+tar -xvf hbase-0.94.27.tar.gz
+
+#Installation of Cassandra
+
+
+mkdir /tmp/cassandra
+cd /tmp/cassandra
+
+wget --no-verbose http://apache.osuosl.org/cassandra/2.1.16/apache-cassandra-2.1.16-bin.tar.gz
+
+echo "Installing the Cassandra Server..."
+
+tar -xvf apache-cassandra-2.1.16-bin.tar.gz
+
+# Installation of Elasticsearch node
+
+mkdir /tmp/elasticsearch
+cd /tmp/elasticsearch
+
+wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
+
+echo "Installing the Elasticsearch node..."
+
+tar -xvzf elasticsearch-1.7.5.tar.gz
+
+cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins     ALL = NOPASSWD: ALL
+EOF
+
+# install crudini command line tool for editing config files
+yum install -y crudini