Fetch ansible inventory from tmp folder 26/2026/2
authorFatih Degirmenci <fdegir@gmail.com>
Fri, 23 Aug 2019 09:00:59 +0000 (09:00 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 23 Aug 2019 09:03:32 +0000 (09:03 +0000)
In some cases ONAP deployment times out, not giving opportunity
to copy the generated kubespray inventory into healthcheck jobs'
workspaces. This results failures for healthcheck as it can't be
executed without inventory.

This change fetches kubespray inventory from tmp folder which is
enabled by the change below.
  https://gerrit.nordix.org/#/c/2027/

Change-Id: I90dcf68bd0f69ccefeb5d94ba09993104c84712d

jjb/cloud-infra/onap-healthcheck.sh
jjb/cloud-infra/oom-healthcheck.sh

index 15914f83c3360546aee2787be051230722c78768..6099d0bf223c26d4ebb50d2ccd31b22cb393e988 100644 (file)
@@ -27,7 +27,7 @@ echo "-------------------------------------------------------------------------"
 echo "Info: Cloning opnfv/xtesting-onap repository"
 cd $HOME && /bin/rm -rf $WORKSPACE
 git clone -q $XTESTING_REPO_URL $WORKSPACE && cd $WORKSPACE
 echo "Info: Cloning opnfv/xtesting-onap repository"
 cd $HOME && /bin/rm -rf $WORKSPACE
 git clone -q $XTESTING_REPO_URL $WORKSPACE && cd $WORKSPACE
-cp ../inventory.ini inventory/inventory.ini
+cp /tmp/inventory.ini inventory/inventory.ini
 $WORKSPACE/xtesting.sh
 
 # vim: set ts=2 sw=2 expandtab:
 $WORKSPACE/xtesting.sh
 
 # vim: set ts=2 sw=2 expandtab:
index 15914f83c3360546aee2787be051230722c78768..6099d0bf223c26d4ebb50d2ccd31b22cb393e988 100644 (file)
@@ -27,7 +27,7 @@ echo "-------------------------------------------------------------------------"
 echo "Info: Cloning opnfv/xtesting-onap repository"
 cd $HOME && /bin/rm -rf $WORKSPACE
 git clone -q $XTESTING_REPO_URL $WORKSPACE && cd $WORKSPACE
 echo "Info: Cloning opnfv/xtesting-onap repository"
 cd $HOME && /bin/rm -rf $WORKSPACE
 git clone -q $XTESTING_REPO_URL $WORKSPACE && cd $WORKSPACE
-cp ../inventory.ini inventory/inventory.ini
+cp /tmp/inventory.ini inventory/inventory.ini
 $WORKSPACE/xtesting.sh
 
 # vim: set ts=2 sw=2 expandtab:
 $WORKSPACE/xtesting.sh
 
 # vim: set ts=2 sw=2 expandtab: