Merge "For artifact signing we need the releng repo."
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 6 Jul 2016 14:20:33 +0000 (14:20 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Wed, 6 Jul 2016 14:20:33 +0000 (14:20 +0000)
jjb/apex/apex-upload-artifact.sh

index ba69f3e..49e19bb 100755 (executable)
@@ -11,8 +11,14 @@ echo
 # source the opnfv.properties to get ARTIFACT_VERSION
 source $WORKSPACE/opnfv.properties
 
+# clone releng repository
+echo "Cloning releng repository..."
+[ -d releng ] && rm -rf releng
+git clone https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng/ &> /dev/null
 #this is where we import the siging key
-source $WORKSPACE/releng/utils/gpg_import_key.sh
+if [ -f $WORKSPACE/releng/utils/gpg_import_key.sh ]; then 
+  source $WORKSPACE/releng/utils/gpg_import_key.sh
+fi
 
 signrpm () {
 for artifact in $RPM_LIST $SRPM_LIST; do