aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-03-29 12:25:16 +0200
committerJan Gelety <jgelety@cisco.com>2016-03-29 12:25:16 +0200
commitbf584751869e2763468fc1c8a1865b5a5ae7c10f (patch)
tree2646af59735a23a3e01577b0b329492236551d09 /bootstrap.sh
parentbbef393dee133408378a5aee83c3844affc9afe3 (diff)
Fix of bootstrap.sh for vpp-csit-verify-virl job
- moved rm -f *.deb to else statement to avoid deletion of deb packages when boostrap.sh is called from include-raw-vpp-csit-functional.sh Change-Id: I4a224a1fc332d50a27347e77dbeacbfbc98677c9 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh24
1 files changed, 1 insertions, 23 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index efd5f34910..99458eb7fb 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -14,9 +14,6 @@
set -x
-echo | sudo tee -a /etc/hostname
-echo "127.0.0.1 `cat /etc/hostname` " | sudo tee -a /etc/hosts
-
cat /etc/hostname
cat /etc/hosts
@@ -24,31 +21,12 @@ export DEBIAN_FRONTEND=noninteractive
sudo apt-get -y update
sudo apt-get -y install libpython2.7-dev python-virtualenv
-#VIRL_VMS="10.30.51.53,10.30.51.51,10.30.51.52"
-#IFS=',' read -ra ADDR <<< "${VIRL_VMS}"
-#
-
function ssh_do() {
echo
echo "### " ssh $@
ssh -i priv_key -o StrictHostKeyChecking=no $@
}
-#for addr in "${ADDR[@]}"; do
-# echo
-# echo ${addr}
-# echo
-#
-# ssh_do cisco@${addr} hostname || true
-# ssh_do cisco@${addr} "ifconfig -a" || true
-# ssh_do cisco@${addr} "lspci -Dnn | grep 0200" || true
-# ssh_do cisco@${addr} "free -m" || true
-# ssh_do cisco@${addr} "cat /proc/meminfo" || true
-# ssh_do cisco@${addr} "dpkg -l vpp\*" || true
-# ssh_do cisco@${addr} "lshw -c network" || true
-# ssh_do cisco@${addr} "sudo -S sh -c 'echo exec show hardware | vpp_api_test '"
-#done
-
VIRL_SERVER=10.30.51.28
VIRL_USERNAME=jenkins-in
VIRL_PKEY=priv_key
@@ -87,11 +65,11 @@ chmod 600 priv_key
# Temporarily download VPP packages from nexus.fd.io
-rm -f *.deb
if [ "${#}" -ne "0" ]; then
arr=(${@})
echo ${arr[0]}
else
+ rm -f *.deb
wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp/1.0.0-229~gb1df169_amd64/vpp-1.0.0-229~gb1df169_amd64.deb" || exit
wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dbg/1.0.0-229~gb1df169_amd64/vpp-dbg-1.0.0-229~gb1df169_amd64.deb" || exit
wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dev/1.0.0-229~gb1df169_amd64/vpp-dev-1.0.0-229~gb1df169_amd64.deb" || exit