Ignore:
Timestamp:
12/18/20 16:06:19 (4 years ago)
Author:
jdquinn
Message:

CHG: Similar packaging script modifications for Linux binaries; clean up

File:
1 copied

Legend:

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

    r25894 r25896  
    22
    33################################################################################
    4 # Wrapper script to build, package, send for signing, and transfer to ISSM Web
    5 # site ISSM distributable package for macOS with MATLAB API.
     4# Wrapper script to build, package, and transfer to ISSM Web site ISSM
     5# distributable package for Linux with Python API.
    66#
    77# Normally, we would put this directly into the project configuration under
     
    1111# When no failures/errors occur, performs the following:
    1212# - Builds ISSM according to configuration.
    13 # - Packages and compresses executables and libraries.
     13# - Packages executables and libraries.
    1414# - Runs test suite against package.
    15 # - Commits compressed package to repository to be signed by JPL Cybersecurity.
    16 # - Retrieves signed package and transmits it to ISSM Web site for
    17 #       distribution.
     15# - Transmits package to ISSM Web site for distribution.
    1816#
    1917# Options:
    2018# -b/--skipbuild                Skip ISSM compilation.
    21 # -r/--resign                   Skip ISSM compilation and packaging. Use to retrigger
    22 #                                               signing/notarization if it fails but build and package
    23 #                                               are valid.
    2419# -s/--skiptests                Skip ISSM compilation and testing during packaging
    25 #                                               step. Use if
     20#                                               step. Use if packaging fails for some reason but build
     21#                                               is valid.
    2622# -t/--transferonly             Transfer package to ISSM Web site only. Use if transfer
    2723#                                               fails for some reason to skip building, packaging, and
    2824#                                               signing.
    29 # -u/--unlock                   Remove lock file from signed package repository. Use if
    30 #                                               build is aborted to allow for subsequent fresh build.
    31 #
    32 # Debugging:
    33 # - Relies on a very tight handshake with project on remote JPL Cybersecurity
    34 #       Jenkins server. Debugging may be perfomed locally by running,
    35 #
    36 #               packagers/mac/sign-issm-mac-binaries-matlab.sh
    37 #
    38 #       with "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" hardcoded to Apple
    39 #       Developer credentials.
    40 # - Removing stdout/stderr redirections to null device (> /dev/null 2>&1) can
    41 #       help debug potential SVN issues.
    4225#
    4326# NOTE:
     
    4730#       workspace. For example, if 'Source Code Management' -> 'Check-out Strategy'
    4831#       select menu is set to "Always check out a fresh copy".
    49 # - Assumes that "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" are set up in
    50 #       the 'Bindings' section under a 'Username and password (separated)' binding
    51 #       (requires 'Credentials Binding Plugin') with 'Credentials' select menu set
    52 #       to "jenkins/****** (SVN repository for ISSM binaries)".
    5332################################################################################
    5433
    5534## Constants
    5635#
    57 PKG="ISSM-macOS-MATLAB" # Name of directory to copy distributable files to
    58 SIGNED_REPO_COPY="./signed"
    59 SIGNED_REPO_URL="https://issm.ess.uci.edu/svn/issm-binaries/mac/matlab/signed"
     36PKG="ISSM-Linux-Python" # Name of directory to copy distributable files to
    6037
    6138COMPRESSED_PKG="${PKG}.zip"
     
    6542export COMPRESSED_PKG
    6643export PKG
    67 export SIGNED_REPO_COPY
    68 export SIGNED_REPO_URL
    6944
    7045## Parse options
     
    8055build=1
    8156package=1
    82 sign=1
    8357transfer=1
    8458
    8559if [ $# -eq 1 ]; then
    8660        case $1 in
    87                 -b|--skipbuild)         build=0;                                                        shift   ;;
    88                 -r|--resign)            build=0;        package=0;                                              ;;
    89                 -s|--skiptests)         build=0;                                                                        ;;
    90                 -t|--transferonly)      build=0;        package=0;      sign=0;                         ;;
    91                 -u|--unlock)            build=0;        package=0;      transfer=0;                     ;;
    92                 *) echo "Unknown parameter passed: $1"; exit 1                                  ;;
     61                -b|--skipbuild)         build=0;                                shift   ;;
     62                -s|--skiptests)         build=0;                                                ;;
     63                -t|--transferonly)      build=0;        package=0;                      ;;
     64                *) echo "Unknown parameter passed: $1"; exit 1          ;;
    9365        esac
    9466fi
     
    9668# Build
    9769if [ ${build} -eq 1 ]; then
    98         ./jenkins/jenkins.sh ./jenkins/pine_island-mac-binaries-matlab
     70        ./jenkins/jenkins.sh ./jenkins/ross-debian_linux-binaries-python
    9971fi
    10072
    10173# Package
    10274if [ ${package} -eq 1 ]; then
    103         ./packagers/mac/package-issm-mac-binaries-matlab.sh $1
    104         shift # Clear $1 so that it is not passed to commit_for_signing script
    105 fi
    106 
    107 # Commit for signing
    108 if [ ${sign} -eq 1 ]; then
    109         ./packagers/mac/commit_for_signing-issm-mac-binaries-matlab.sh $1
     75        ./packagers/linux/package-issm-linux-binaries-python.sh $1
    11076fi
    11177
    11278# Transfer distributable package to ISSM Web site
    11379if [ ${transfer} -eq 1 ]; then
    114         ./packagers/mac/transfer-issm-mac-binaries.sh
     80        ./packagers/linux/transfer-issm-linux-binaries.sh
    11581fi
    11682
Note: See TracChangeset for help on using the changeset viewer.