Changeset 16665


Ignore:
Timestamp:
11/07/13 15:29:37 (11 years ago)
Author:
Eric.Larour
Message:

CHG: refining jenkins way of checking externalpackages installs.

File:
1 edited

Legend:

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

    r16664 r16665  
    114114                        #ok, we want to skip, unless the package is not installed:
    115115                        if [ -d install ]; then
    116                                 echo "For $PACKAGENAME: svn current_version  is $current_version and last changed version is $last_changed_version"
    117                                 echo "and install directory exists, so skipping install of $PACKAGENAME"
    118                                 install_test=0;
     116                                #could be empty, signaling a failed previous install:
     117                                if [ "$(ls -A install)" ];then
     118                                        echo "For $PACKAGENAME: svn current_version  is $current_version and last changed version is $last_changed_version"
     119                                        echo "and install directory exists, so skipping install of $PACKAGENAME"
     120                                        install_test=0;
     121                                else
     122                                        echo "For $PACKAGENAME: svn current_version  is $current_version and last changed version is $last_changed_version"
     123                                        echo "and install directory exists, however, it is empty, so triggering install of $PACKAGENAME"
     124                                        install_test=1;
     125                                fi
    119126                        else
    120127                                echo "For $PACKAGENAME: svn current_version  is $current_version and last changed version is $last_changed_version"
Note: See TracChangeset for help on using the changeset viewer.