Changeset 27708


Ignore:
Timestamp:
04/26/23 14:32:30 (2 years ago)
Author:
jdquinn
Message:

CHG: Download examples datasets if they are not already present when running Jenkins builds

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

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

    r27613 r27708  
    450450if [ $EXAMPLES_TEST -eq 1 ]; then
    451451        export MATLAB_PATH
     452
     453        # Download examples datasets if they are not already present
     454        if [[ -z $(ls -A1q $ISSM_DIR/examples/Data) ]]; then
     455                $ISSM_DIR/scripts/DownloadExamplesDatasets.sh
     456        fi
     457
    452458        $ISSM_DIR/jenkins/examples_tests.sh
    453459fi
  • issm/trunk-jpl/scripts/DownloadExamplesDatasets.sh

    r26190 r27708  
    2525fi
    2626
    27 # Get content of page that hosts datasets, reduce to just datasets list, then 
     27# Get content of page that hosts datasets, reduce to just datasets list, then
    2828# parse out dataset links
     29#
     30# NOTE: Clear DYLD_LIBRARY_PATH in case we have installed our own copy of cURL
     31#               and $ISSM_DIR/etc/environment.sh has been sourced as there may be a
     32#               conflict between versions of cURL executable and libcurl
     33#
    2934dataset_urls=$(\
     35        DYLD_LIBRARY_PATH=""; \
    3036        curl -Ls ${DATASETS_URL} |\
    3137        sed '/<!--DATASETS LIST START-->/,/<!--DATASETS LIST END-->/ !d' |\
     
    3440
    3541# Get datasets
    36 wget --no-clobber --directory-prefix="${DIRECTORY_PREFIX}" -i - <<< "${dataset_urls}"
     42#
     43echo "Downloading examples datasets..."
     44wget --quiet --no-clobber --directory-prefix="${DIRECTORY_PREFIX}" -i - <<< "${dataset_urls}"
    3745
    3846# Expand zip files
Note: See TracChangeset for help on using the changeset viewer.