diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/apex/apex.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index c2f45448a..b41cedb9d 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -472,16 +472,17 @@ source opnfv.properties RPM_INSTALL_PATH=build_output/$(basename $OPNFV_RPM_URL) + if [ ! -e "$RPM_INSTALL_PATH" ]; then + RPM_INSTALL_PATH=http://${OPNFV_RPM_URL} + fi # update / install the new rpm if rpm -q opnfv-apex > /dev/null; then if sudo yum update -y $RPM_INSTALL_PATH | grep "does not update installed package"; then sudo yum downgrade -y $RPM_INSTALL_PATH; fi - elif [ -e "$RPM_INSTALL_PATH" ]; then - sudo yum install -y $RPM_INSTALL_PATH; else - sudo yum install -y http://${OPNFV_RPM_URL} + sudo yum install -y $RPM_INSTALL_PATH; fi # cleanup environment before we start |