diff options
author | 2018-06-21 13:56:02 -0400 | |
---|---|---|
committer | 2018-06-21 13:56:02 -0400 | |
commit | 4c34259866bd34d79fb5a100b8355404d9eca36a (patch) | |
tree | bc9e0aace2605cb92199694ae05d08f6c6cf8225 /jjb/apex | |
parent | 0f74128709ef7f1840ee2af673067c3712f2393b (diff) |
Apex: Fix usage of gpg key import
Removes using source to call the gpg import script. source will execute
the script in the current shell, which will exit the artifact upload.
Adds checking to make sure we ignore any failure with running the
script.
Change-Id: I587cf9584f9fa8c4d315b7b2328a6c7c55ae3b88
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex')
-rwxr-xr-x | jjb/apex/apex-upload-artifact.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/apex/apex-upload-artifact.sh b/jjb/apex/apex-upload-artifact.sh index 8743368fb..6acb2a582 100755 --- a/jjb/apex/apex-upload-artifact.sh +++ b/jjb/apex/apex-upload-artifact.sh @@ -24,7 +24,9 @@ importkey () { git clone https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng/ &> /dev/null #this is where we import the siging key if [ -f $WORKSPACE/releng/utils/gpg_import_key.sh ]; then - source $WORKSPACE/releng/utils/gpg_import_key.sh + if ! $WORKSPACE/releng/utils/gpg_import_key.sh; then + echo "WARNING: Failed to run gpg key import" + fi fi } |