Changeset 19214


Ignore:
Timestamp:
03/20/15 12:39:41 (10 years ago)
Author:
glperez
Message:

CHG: Jenkins script now checks for and uses SVN and SVNVERSION variables.
CHG: Jenkins Murdo script sets SVN and SNVERSION variables.

Location:
issm/trunk-jpl/jenkins
Files:
2 edited

Legend:

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

    r19213 r19214  
    3434#}}}
    3535
    36 echo "-------------------------------------"
    37 echo " SVN: $SVN"
    38 echo "-------------------------------------"
     36#SVN version issue requires that we set SVN and SVNVERSION explicitly in order
     37#to remain compatible with the version used by Jenkins to do checkouts
     38#{{{
     39if [[ -z $SVN ]]; then
     40        echo "SVN variable is not set!"
     41        echo "Defaulting to SVN found in path..."
     42        SVN='svn'
     43fi
     44if [[ -z $SVNVERSION ]]; then
     45        echo "SVNVERSION variable is not set!"
     46        echo "Defaulting to SVNVERSION found in path..."
     47        SVNVERSION='svnversion'
     48fi
     49#}}}
    3950
    4051#install/copy/none external packages    (ISSM_EXTERNALPACKAGES){{{
     
    5667                #this, we check the current svn version against the "last changed" revision number.  If they
    5768                #are the same, we reinstall the package.
    58                 current_version=`/usr/bin/svnversion`
    59                 last_changed_version=`/usr/bin/svn info $PACKAGEINST | grep "Last Changed Rev" | awk '{printf("%s\n",$4);}'`
     69                current_version=`$SVNVERSION`
     70                last_changed_version=`$SVN info $PACKAGEINST | grep "Last Changed Rev" | awk '{printf("%s\n",$4);}'`
    6071
    6172                if [[ $current_version == $last_changed_version ]]; then
     
    99110                else
    100111                        echo "======================================================";
    101                         echo "       Skipping install of $PACKAGENAME                        ";
     112                        echo "       Skipping install of $PACKAGENAME               ";
    102113                        echo "======================================================";
    103114                        source $ISSM_DIR/etc/environment.sh #for good measure :)
  • issm/trunk-jpl/jenkins/linux64_murdo

    r19213 r19214  
    3939REPOSITORY="https://issm.ess.uci.edu/svn/issm/issm/trunk-jpl"
    4040SVN='/usr/bin/svn'
     41SVNVERSION='/usr/bin/svnversion'
    4142
    4243#-----------------------------------#
Note: See TracChangeset for help on using the changeset viewer.