]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha: fixes to enable "Builds" section in shaman
authorAli Maredia <amaredia@redhat.com>
Thu, 26 Jan 2017 19:38:15 +0000 (14:38 -0500)
committerAli Maredia <amaredia@redhat.com>
Fri, 10 Feb 2017 13:51:40 +0000 (08:51 -0500)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
nfs-ganesha/build/build_deb
nfs-ganesha/build/build_rpm
nfs-ganesha/config/definitions/nfs-ganesha.yml

index 2356cbf9acf5fbe519f2dfefc1e5d9c675a75396..38157964eb86d9539be8ea7d4cb9cb4d01e4d049 100644 (file)
@@ -122,6 +122,7 @@ fi
 echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}
 
 # update shaman with the completed build status
+SHA1=${GIT_COMMIT}
 update_build_status "completed" "nfs-ganesha" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
 
 sudo rm -rf $WORKSPACE/dist
index d076000c06f795138ab39d324958ad65544d21c1..0d31f3472e1eb54fa3625d09cfb64b36801488bb 100644 (file)
@@ -78,7 +78,7 @@ echo "\"\"\"" >> nfs-ganesha.cfg
 echo "Building RPMs"
 sudo mock -r nfs-ganesha.cfg --define "dist .el7" --resultdir=$WORKSPACE/dist/RPMS/ ${SRPM} || ( tail -n +1 $WORKSPACE/dist/RPMS/{root,build}.log && exit 1 )
 
-VERSION=`grep -om 1 "[0-9]\.[0-9]-dev-[0-9]" $WORKSPACE/nfs-ganesha/src/build/include/config.h`
+VERSION=`grep -om 1 "[0-9]\.[0-9]-dev-[0-9]" $WORKSPACE/nfs-ganesha/build/include/config.h`
 chacra_endpoint="nfs-ganesha/${NFS_GANESHA_BRANCH}/${GIT_COMMIT}/${DISTRO}/${RELEASE}"
 RPM_RELEASE=`grep Release $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec | sed 's/Release:[ \t]*//g' | cut -d '%' -f 1`
 RPM_VERSION=`grep Version $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec | sed 's/Version:[ \t]*//g'`
@@ -111,6 +111,7 @@ fi
 echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}
 
 # update shaman with the completed build status
+SHA1=${GIT_COMMIT}
 update_build_status "completed" "nfs-ganesha" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
 
 sudo rm -rf $WORKSPACE/dist
index c68074fb6a1d6641e4fe8a57802558692e84d4dd..7bdb47cf7398d1f4b34bec629a165d581d59e58c 100644 (file)
           description: "The git branch (or tag) to build"
           default: "next"
 
+      - string:
+          name: BRANCH
+          description: "The git branch that will be posted to shaman"
+          default: $NFS_GANESHA_BRANCH
+
       - string:
           name: CEPH_SHA1
           description: "The SHA1 of the ceph branch"