Changeset 21178


Ignore:
Timestamp:
09/01/16 12:43:57 (9 years ago)
Author:
glperez
Message:

CHG: Moving away from the SUCCESS file way of checking if externalpackage was installed directory. It seems like a much more effective measure is to check if the install directory is empty or not. Let's see how it goes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/jenkins.sh

    r21165 r21178  
    133133
    134134        #install if requested or if previous install has not been successful
    135         if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! -f SUCCESS ]; then
     135        if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! "$(ls -A $DIR)" ]; then
    136136                echo "======================================================";
    137137                echo "       Installing $PACKAGENAME                        ";
    138138                echo "======================================================";
    139                 ./$PACKAGEINST |  tee compil.log
     139                ./$PACKAGEINST > compil.log
    140140                if [ $? -ne 0 ]; then
    141141                        echo "======================================================";
     
    148148                else
    149149                        echo "<testcase classname=\"externalpackages\" name=\"$PACKAGENAME\"/>" >> $EXTERNAL_TEST_FILE
    150                         touch SUCCESS
    151150                fi
    152151                source $ISSM_DIR/etc/environment.sh
Note: See TracChangeset for help on using the changeset viewer.