- Timestamp:
- 12/18/20 16:06:19 (4 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/packagers/linux/complete-issm-linux-binaries-python.sh
r25894 r25896 2 2 3 3 ################################################################################ 4 # Wrapper script to build, package, send for signing, and transfer to ISSM Web5 # site ISSM distributable package for macOS with MATLABAPI.4 # Wrapper script to build, package, and transfer to ISSM Web site ISSM 5 # distributable package for Linux with Python API. 6 6 # 7 7 # Normally, we would put this directly into the project configuration under … … 11 11 # When no failures/errors occur, performs the following: 12 12 # - Builds ISSM according to configuration. 13 # - Packages and compressesexecutables and libraries.13 # - Packages executables and libraries. 14 14 # - 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. 18 16 # 19 17 # Options: 20 18 # -b/--skipbuild Skip ISSM compilation. 21 # -r/--resign Skip ISSM compilation and packaging. Use to retrigger22 # signing/notarization if it fails but build and package23 # are valid.24 19 # -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. 26 22 # -t/--transferonly Transfer package to ISSM Web site only. Use if transfer 27 23 # fails for some reason to skip building, packaging, and 28 24 # signing. 29 # -u/--unlock Remove lock file from signed package repository. Use if30 # build is aborted to allow for subsequent fresh build.31 #32 # Debugging:33 # - Relies on a very tight handshake with project on remote JPL Cybersecurity34 # Jenkins server. Debugging may be perfomed locally by running,35 #36 # packagers/mac/sign-issm-mac-binaries-matlab.sh37 #38 # with "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" hardcoded to Apple39 # Developer credentials.40 # - Removing stdout/stderr redirections to null device (> /dev/null 2>&1) can41 # help debug potential SVN issues.42 25 # 43 26 # NOTE: … … 47 30 # workspace. For example, if 'Source Code Management' -> 'Check-out Strategy' 48 31 # select menu is set to "Always check out a fresh copy". 49 # - Assumes that "ISSM_BINARIES_USER" and "ISSM_BINARIES_PASS" are set up in50 # the 'Bindings' section under a 'Username and password (separated)' binding51 # (requires 'Credentials Binding Plugin') with 'Credentials' select menu set52 # to "jenkins/****** (SVN repository for ISSM binaries)".53 32 ################################################################################ 54 33 55 34 ## Constants 56 35 # 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" 36 PKG="ISSM-Linux-Python" # Name of directory to copy distributable files to 60 37 61 38 COMPRESSED_PKG="${PKG}.zip" … … 65 42 export COMPRESSED_PKG 66 43 export PKG 67 export SIGNED_REPO_COPY68 export SIGNED_REPO_URL69 44 70 45 ## Parse options … … 80 55 build=1 81 56 package=1 82 sign=183 57 transfer=1 84 58 85 59 if [ $# -eq 1 ]; then 86 60 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 ;; 93 65 esac 94 66 fi … … 96 68 # Build 97 69 if [ ${build} -eq 1 ]; then 98 ./jenkins/jenkins.sh ./jenkins/ pine_island-mac-binaries-matlab70 ./jenkins/jenkins.sh ./jenkins/ross-debian_linux-binaries-python 99 71 fi 100 72 101 73 # Package 102 74 if [ ${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 110 76 fi 111 77 112 78 # Transfer distributable package to ISSM Web site 113 79 if [ ${transfer} -eq 1 ]; then 114 ./packagers/ mac/transfer-issm-mac-binaries.sh80 ./packagers/linux/transfer-issm-linux-binaries.sh 115 81 fi 116 82
Note:
See TracChangeset
for help on using the changeset viewer.