]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-release-rpm: fix the chacra TEST flag 194/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 3 Nov 2015 15:04:07 +0000 (09:04 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 3 Nov 2015 15:04:07 +0000 (09:04 -0600)
actually post to the 'test' ref now

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-release-rpm/build/build

index 34c5c2a8d416a622e92850cc646ef09c7ab80df9..c09fa116131e56d087d0e2328a1c300938a6b8b6 100644 (file)
@@ -36,23 +36,23 @@ EOF
 
 # What are we building ?
 
+[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="${RELEASE}"
+
 target=$DIST
 if [ "$target" = "centos6" ] ; then
     target=el6
-    chacra_baseurl="ceph/${RELEASE}/centos/6"
+    chacra_baseurl="ceph/${chacra_ref}/centos/6"
 fi
 if [ "$target" = "centos7" ] ; then
     target=el7
-    chacra_baseurl="ceph/${RELEASE}/centos/7"
+    chacra_baseurl="ceph/${chacra_ref}/centos/7"
 fi
 if [ "$target" = "sles11sp2" ] ; then
     target=sles11
-    chacra_baseurl="ceph/${RELEASE}/sles/11"
+    chacra_baseurl="ceph/${chacra_ref}/sles/11"
 fi
 echo "Target directory is: $target"
 
-[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
-
 chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
 
 # if the binary already exists in chacra, do not rebuild