- ../../../scripts/build_utils.sh
- ../../build/setup_rpm
- ../../build/build_rpm
+ - trigger-builds:
+ - project: "nfs-ganesha"
+ current-parameters: True
+ predefined-parameters:
+ CEPH_BRANCH=$BRANCH
publishers:
- postbuildscript:
fi
REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$DIST/repo"
-SHAMAN_MIRROR=`curl --fail -L ${REPO_URL}`
-if [[ ${SHAMAN_MIRROR} ]]; then
- echo "Ceph debian lib repo exists in shaman"
-else
+TIME_LIMIT=600
+INTERVAL=30
+REPO_FOUND=0
+
+# poll shaman for up to 10 minutes
+while [ "$SECONDS" -le "$TIME_LIMIT" ]
+do
+ SHAMAN_MIRROR=`curl --fail -L ${REPO_URL}`
+ if [[ ${SHAMAN_MIRROR} ]]; then
+ echo "Ceph debian lib repo exists in shaman"
+ REPO_FOUND=1
+ break
+ else
+ sleep $INTERVAL
+ fi
+done
+
+if [[ "$REPO_FOUND" -eq 0 ]]; then
echo "Ceph debian lib repo does NOT exist in shaman"
exit 1
fi
# Get .repo file from appropriate shaman build
REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$RELEASE/flavors/default/repo"
-if `curl --fail -L $REPO_URL > $WORKSPACE/shaman.repo`; then
- echo "Ceph repo file has been added from shaman"
-else
- echo "Ceph repo file was NOT added from shaman"
+TIME_LIMIT=600
+INTERVAL=30
+REPO_FOUND=0
+
+# poll shaman for up to 10 minutes
+while [ "$SECONDS" -le "$TIME_LIMIT" ]
+do
+ if `curl --fail -L $REPO_URL > $WORKSPACE/shaman.repo`; then
+ echo "Ceph repo file has been added from shaman"
+ REPO_FOUND=1
+ break
+ else
+ sleep $INTERVAL
+ fi
+done
+
+if [[ "$REPO_FOUND" -eq 0 ]]; then
+ echo "Ceph lib repo does NOT exist in shaman"
exit 1
fi
- ARCHS
triggers:
- github
- - pollurl:
- cron: '*/30 * * * *'
- urls:
- - url: https://shaman.ceph.com/api/repos/ceph/master/latest/centos/7/repo
- check-content:
- - simple: true
- - url: https://shaman.ceph.com/api/repos/ceph/kraken/latest/centos/7/repo
- check-content:
- - simple: true
- - url: https://shaman.ceph.com/api/repos/ceph/master/latest/ubuntu/xenial/repo
- check-content:
- - simple: true
- - url: https://shaman.ceph.com/api/repos/ceph/kraken/latest/ubuntu/xenial/repo
- check-content:
- - simple: true
scm:
- nfs-ganesha