bpvers=`gen_debian_version $debian_version $DIST`
# look for a specific package to tell if we can avoid the build
-chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
+chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}/${ARCH}"
DEB_ARCH=`dpkg-architecture | grep DEB_BUILD_ARCH\= | cut -d '=' -f 2`
chacra_check_url="${chacra_endpoint}/librados2_${bpvers}_${DEB_ARCH}.deb"
[ "$RC" = true ] && chacra_ref="$BRANCH-rc" || chacra_ref="$BRANCH"
[ "$TEST" = true ] && chacra_ref="test"
-chacra_endpoint="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
+chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${DISTRO}/${RELEASE}"
chacra_check_url="${chacra_endpoint}/${ARCH}/librados2-${vers}-0.${DIST}.${ARCH}.rpm"
echo " WS=$WORKSPACE"
echo " PWD=$(pwd)"
echo " BRANCH=$BRANCH"
+echo " SHA1=$SHA1"
# FIXME A very naive way to just list the RPM $DIST that we currently support.
# We should be a bit more lenient to allow any rhel/centos/sles/suse
RPM_BUILD=$(lsb_release -s -c)
[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
- chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DISTRO_VERSION}"
+ chacra_endpoint="ceph-deploy/${chacra_ref}/${SHA1}/${DISTRO}/${DISTRO_VERSION}"
# this exists in scripts/build_utils.sh for ceph-deploy, binaries have
# no architecture so we POST them to 'noarch' for rpms
[ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
# ceph-deploy isn't architecture dependant, so we use 'all' as architecture and
# uses 'universal' to signal this is not specific to any distro version
- chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/universal/all"
+ chacra_endpoint="ceph-deploy/${chacra_ref}/${SHA1}/${DISTRO}/universal/all"
# this exists in scripts/build_utils.sh
check_binary_existence $chacra_endpoint
target=$DIST
if [ "$target" = "centos6" ] ; then
target=el6
- chacra_baseurl="ceph-release/${chacra_ref}/centos/6"
+ chacra_baseurl="ceph-release/${chacra_ref}/HEAD/centos/6"
fi
if [ "$target" = "centos7" ] ; then
target=el7
- chacra_baseurl="ceph-release/${chacra_ref}/centos/7"
+ chacra_baseurl="ceph-release/${chacra_ref}/HEAD/centos/7"
fi
if [ "$target" = "sles11sp2" ] ; then
target=sles11
- chacra_baseurl="ceph-release/${chacra_ref}/sles/11"
+ chacra_baseurl="ceph-release/${chacra_ref}/HEAD/sles/11"
fi
echo "Target directory is: $target"
echo " BPTAG=${BPTAG}"
echo " WS=$WORKSPACE"
echo " PWD=$(pwd)"
+echo " BRANCH=$BRANCH"
+echo " SHA1=$SHA1"
ls -l
# get_rpm_dist is located in scripts/build_utils.sh
get_rpm_dist
- chacra_endpoint="radosgw-agent/${chacra_ref}/${DISTRO}/${DISTRO_VERSION}"
+ chacra_endpoint="radosgw-agent/${chacra_ref}/${GIT_COMMIT}/${DISTRO}/${DISTRO_VERSION}"
check_binary_existence $chacra_endpoint/noarch
DEB_BUILD=$(lsb_release -s -c)
DISTRO=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
- chacra_endpoint="radosgw-agent/${chacra_ref}/${DISTRO}/${DEB_BUILD}/noarch"
+ chacra_endpoint="radosgw-agent/${chacra_ref}/${GIT_COMMIT}/${DISTRO}/${DEB_BUILD}/noarch"
check_binary_existence $chacra_endpoint