Changeset 25889


Ignore:
Timestamp:
12/18/20 01:03:11 (4 years ago)
Author:
jdquinn
Message:

CHG: Trying another method for accessing credentials env vars in called scripts

Location:
issm/trunk-jpl/packagers/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/packagers/mac/complete-issm-mac-binaries-matlab.sh

    r25887 r25889  
    7070## Parse options
    7171#
    72 if [ $# -gt 1 ]; then
    73         echo "Can only use one option at a time"
     72# NOTE: Checking if more than three arguments because the first two contain
     73#               the repository credentials
     74#
     75if [ $# -gt 3 ]; then
     76        echo "Can use only one option at a time"
    7477        exit 1
    7578fi
     79
     80# Retrieve repository credentials
     81#
     82# NOTE: This is not very secure, but better than maintaining the credentials in
     83#               plaintext
     84#
     85# TODO: Either maintain credentials in a secret file on node, or write out
     86#               crendentials to file in Jenkins 'Execute shell' and source it in each
     87#               script that requires them
     88#
     89export ISSM_BINARIES_REPO_USER="${1}" # NOTE: This is not very secure, but
     90shift
     91export ISSM_BINARIES_REPO_PASS="${1}" # NOTE: This is not very secure
     92shift
    7693
    7794# NOTE: We could do this with binary switching (i.e. 0011 to sign and transfer,
  • issm/trunk-jpl/packagers/mac/transfer-issm-mac-binaries-matlab.sh

    r25888 r25889  
    7070}
    7171
    72 # TEST
    73 echo "ISSM_BINARIES_REPO_USER: ${ISSM_BINARIES_REPO_USER}"
    74 echo "ISSM_BINARIES_REPO_PASS: ${ISSM_BINARIES_REPO_PASS}"
    75 
    7672# Check if working copy of repository for signed packages is missing
    7773validate_signed_repo_copy
Note: See TracChangeset for help on using the changeset viewer.