diff options
author | Michal Skalski <mskalski@mirantis.com> | 2016-09-08 12:12:52 +0200 |
---|---|---|
committer | Michal Skalski <mskalski@mirantis.com> | 2016-09-08 12:12:52 +0200 |
commit | bcbc818f8c72b1a53a645b6f56667f71bd094552 (patch) | |
tree | 59889669c3d04455741d7e17c27b9e8db49e8faf /jjb | |
parent | 2b1ba7d32f7378b1a4426a07e17eb0abd9cd094d (diff) |
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 <mskalski@mirantis.com>
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/fuel/fuel-deploy.sh | 11 |
1 files changed, 7 insertions, 4 deletions
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" |