From bcbc818f8c72b1a53a645b6f56667f71bd094552 Mon Sep 17 00:00:00 2001 From: Michal Skalski Date: Thu, 8 Sep 2016 12:12:52 +0200 Subject: Fix tacker installation Sometimes commands are exeucuted before last one was finished, for example here: https://build.opnfv.org/ci/job/fuel-deploy-virtual-daily-colorado/117/console Try set custom prompt to eliminate false matching and add additional sleep after git package installation. Change-Id: I0fd1b5410c7870ff2a074e050069efc3b61b0d79 Signed-off-by: Michal Skalski --- jjb/fuel/fuel-deploy.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'jjb/fuel') diff --git a/jjb/fuel/fuel-deploy.sh b/jjb/fuel/fuel-deploy.sh index 136aac861..2104d9090 100755 --- a/jjb/fuel/fuel-deploy.sh +++ b/jjb/fuel/fuel-deploy.sh @@ -143,14 +143,17 @@ expect { expect "# " send "/usr/bin/ssh -l root $::env(CONTROLLER_NODE_IP)\r" expect "# " +send "PS1=\"tacker_poc> \"\r" +expect -re {tacker_poc> $} send "sudo apt-get install -y git\r" -expect "# " +expect -re {tacker_poc> $} +sleep 10 send "/bin/mkdir -p /root/sfc-poc && cd /root/sfc-poc\r" -expect "# " +expect -re {tacker_poc> $} send "git clone https://gerrit.opnfv.org/gerrit/fuel && cd fuel\r" -expect "# " +expect -re {tacker_poc> $} send "/bin/bash /root/sfc-poc/fuel/prototypes/sfc_tacker/poc.tacker-up.sh\r" -expect "# " +expect -re {tacker_poc> $} send "exit\r" expect "Connection to $::env(CONTROLLER_NODE_IP) closed. " send "exit\r" -- cgit 1.2.3-korg