When FORCE is checked binaries will be built and pushed to chacra even
if they already exist in chacra
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
chacractl binary exists ${chacra_endpoint}
# if the binary already exists in chacra, do not rebuild
-if [ $? -e 0 ] ; then
+if [ $? -e 0 ] && [ "$FORCE" = false ] ; then
echo "The endpoint at ${chacra_endpoint} already exists, Exiting..."
exit 0
fi
chacractl binary exists ${chacra_baseurl}/${ARCH}
# if the binary already exists in chacra, do not rebuild
-if [ $? -e 0 ] ; then
+if [ $? -e 0 ] && [ "$FORCE" = false ]; then
echo "The endpoint at ${chacra_baseurl}/${ARCH} already exists, Exiting..."
exit 0
fi
-
HOST=$(hostname --short)
echo "Building on $(hostname) Date: $(date)"
echo " DIST=${DIST}"
If this is checked, then the builds will be pushed to chacra under the 'test' ref."
+ - bool:
+ name: FORCE
+ description: "
+If this is unchecked, then then nothing is built or pushed if they already exist in chacra. This is the default.
+
+If this is checked, then the binaries will be built and pushed to chacra even if they already exist in chacra."
+
builders:
- multijob:
name: 'ceph setup phase'