Changeset 20492


Ignore:
Timestamp:
04/11/16 14:01:19 (9 years ago)
Author:
glperez
Message:

CHG: Modified uploading logic to use public key crypto.

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/macosx_pine-island_static

    r20464 r20492  
    2222        --with-m1qn3-dir=$ISSM_DIR/externalpackages/m1qn3/install \
    2323        --with-fortran-lib="/usr/local/gfortran/lib/libgfortran.a /usr/local/gfortran/lib/libquadmath.a /usr/local/gfortran/lib/gcc/x86_64-apple-darwin14/5.2.0/libgcc.a" \
    24         --with-numthreads=4 \
    25         --enable-debugging'
     24        --with-numthreads=4'
    2625
    2726#PYTHON and MATLAB testing
  • issm/trunk-jpl/packagers/macosx/package.sh

    r18527 r20492  
    3636
    3737echo "Shipping binaries to website"
    38 scp $tarball_name websites.jpl.nasa.gov:/home/larour/files/$tarball_name
     38
     39# We're using public key authentication method to upload the tarball The
     40# following lines check to see if the SSH Agent is running. If not, then it is
     41# started and relevant information is forwarded to a script.
     42pgrep "ssh-agent" > /dev/null
     43if [ $? -ne 0 ]; then
     44        echo "SSH Agent is not running. Starting it..."
     45        ssh-agent > ~/.ssh/agent.sh
     46else
     47        echo "SSH Agent is running..."
     48fi
     49
     50source ~/.ssh/agent.sh
     51ssh-add ~/.ssh/macosx-bins_richese-to-ross
     52
     53scp $tarball_name ross.ics.uci.edu:/var/www/html/$tarball_name
     54
     55if [ $? -ne 0 ]; then
     56        echo "The upload failed."
     57        echo "Perhaps the SSH Agent was started by some other means."
     58        echo "Try killing the agent and running again.
     59fi
Note: See TracChangeset for help on using the changeset viewer.