Switch pipeline to use new vm lib and few fixes

Change-Id: Idbe14bac754fb13f9a9de5e36a5a6b542e665750
This commit is contained in:
Kaspars Skels 2018-10-21 14:27:49 -05:00
parent 25e34e057d
commit 095495d838
1 changed files with 9 additions and 4 deletions

View File

@ -335,12 +335,17 @@ def sanity_tests = {
//// main flow
vm2() {
// wait and make sure genesis is up, and remove docker
// this ensures no containers are running after reboot
vm(timeout: 360) {
// wait and make sure genesis is up
ssh.wait (GENESIS_CREDS, GENESIS_IP, 'hostname')
// disable docker/kubelet services
// this is done to be able to properly cleanup genesis after reboot
ssh.cmd (GENESIS_CREDS, GENESIS_IP,
'sudo apt-get remove docker-engine -y')
'sudo systemctl disable kubelet')
ssh.cmd (GENESIS_CREDS, GENESIS_IP,
'sudo systemctl disable docker')
sh 'sudo apt-get update'
sh 'sudo apt-get install docker.io -y'