Changeset 20610


Ignore:
Timestamp:
05/12/16 12:31:35 (9 years ago)
Author:
glperez
Message:

CHG: Modified packager script to upload to ross.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/packagers/ubuntu/package.sh

    r18769 r20610  
    55cat generic_static.m | sed -e "s/generic_static/generic/g" > generic.m
    66echo "move mpiexec to bin"
    7 cp ../externalpackages/mpich/install/bin/mpiexec .
    8 cp ../externalpackages/mpich/install/bin/hydra_pmi_proxy .
    97
    108#Check that test101 runs
     
    2826echo "Creating tarball: ${tarball_name}"
    2927cd $ISSM_DIR
    30 tar -czf $tarball_name ./bin ./lib ./test ./examples
     28rm -rf trunk
     29mkdir trunk
     30cp -rf bin lib test examples trunk/
     31tar -czf $tarball_name trunk
    3132ls -lah $tarball_name
    3233
    3334echo "Shipping binaries to website"
    34 cp $tarball_name /u/astrid-r1b/morlighe/public/
    35 chmod 777 /u/astrid-r1b/morlighe/public/$tarball_name
    36 scp $tarball_name websites.jpl.nasa.gov:/home/larour/files/$tarball_name
     35
     36# We're using public key authentication method to upload the tarball The
     37# following lines check to see if the SSH Agent is running. If not, then it is
     38# started and relevant information is forwarded to a script.
     39pgrep "ssh-agent" > /dev/null
     40if [ $? -ne 0 ]; then
     41        echo "SSH Agent is not running. Starting it..."
     42        ssh-agent > ~/.ssh/agent.sh
     43else
     44        echo "SSH Agent is running..."
     45fi
     46
     47source ~/.ssh/agent.sh
     48ssh-add ~/.ssh/ubuntu-bins_jenkins-to-ross
     49
     50scp $tarball_name ross.ics.uci.edu:/var/www/html/$tarball_name
     51
     52if [ $? -ne 0 ]; then
     53        echo "The upload failed."
     54        echo "Perhaps the SSH Agent was started by some other means."
     55        echo "Try killing the agent and running again."
     56fi
Note: See TracChangeset for help on using the changeset viewer.