For artifact signing we need the releng repo. 51/16451/4
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 6 Jul 2016 13:30:59 +0000 (09:30 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 6 Jul 2016 14:18:03 +0000 (10:18 -0400)
Forgot to clone the releng repo so that my
script is avaliable

Change-Id: I5e8658123140c0c173138e597730263753099503
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
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