Ignore:
Timestamp:
04/08/20 10:36:32 (5 years ago)
Author:
jdquinn
Message:

CHG: No longer relying on ssh-agent to ship binaries; reverting uncommented blocks of packaging scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/packagers/linux/package-issm-linux-binaries.sh

    r24695 r24703  
    7171if [[ ${numMatlabTestsFailed} -ne 0 ]]; then
    7272        echo "One or more MATLAB tests FAILED"
    73         exit 1;
     73        exit 1
    7474else
    7575        echo "All MATLAB tests PASSED"
     
    9090ls -lah ${ISSM_DIR}/${TARBALL}
    9191
    92 echo "Shipping binaries to website"
    93 
    94 # We're using public key authentication method to upload the tarball The
    95 # following lines check to see if the SSH Agent is running. If not, then it is
    96 # started and relevant information is forwarded to a script.
    97 pgrep "ssh-agent" > /dev/null
    98 if [ $? -ne 0 ]; then
    99         echo "SSH Agent is not running. Starting it..."
    100         ssh-agent > ~/.ssh/agent.sh
    101 else
    102         echo "SSH Agent is running..."
    103 fi
    104 
    105 source ~/.ssh/agent.sh
    106 ssh-add ~/.ssh/debian_linux-vm_to_ross
    107 
    108 scp ${TARBALL} ross.ics.uci.edu:/var/www/html/${TARBALL}
     92echo "Transferring binaries to ISSM Web site"
     93scp -i ~/.ssh/debian_linux-vm_to_ross ${TARBALL} jenkins@ross.ics.uci.edu:/var/www/html/${TARBALL}
    10994
    11095if [ $? -ne 0 ]; then
    111         echo "The upload failed."
    112         echo "Perhaps the SSH Agent was started by some other means."
    113         echo "Try killing the agent and running again."
     96        echo "FAILED: Manually check connection"
     97        exit 1
    11498fi
Note: See TracChangeset for help on using the changeset viewer.