jenkins-scripts/*-local-env.sh,
jjb/integration/include-raw-integration-deploy-openstack-run-test.sh,
jjb/integration/include-raw-integration-list-jobs.sh,
- jjb/integration/include-raw-integration-multipatch-distribution-test.sh,
jjb/integration/include-raw-integration-replace-block-text.sh
shell = bash
indent_size = 4
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
-cd $BUILD_DIR
+cd $BUILD_DIR || exit 1
# create a root pom that will contain a module for each project we have a patch for
echo "<project>" >> $POM_FILE
echo "cloning project ${PROJECT}"
git clone "https://git.opendaylight.org/gerrit/p/${PROJECT}"
echo "<module>${PROJECT_SHORTNAME}</module>" >> ${POM_FILE}
- cd ${PROJECT_SHORTNAME}
+ cd ${PROJECT_SHORTNAME} || exit 1
# For patch=controller=61/29761/5:45/29645/6, this gives 61/29761/5
CHECKOUT=`echo ${patch} | cut -d\= -s -f 2 | cut -d\: -f 1`
if [ "x${CHECKOUT}" != "x" ]; then
git fetch "https://git.opendaylight.org/gerrit/${PROJECT}" "refs/changes/${pick}"
git cherry-pick --ff --keep-redundant-commits FETCH_HEAD
done
- cd "${BUILD_DIR}"
+ cd "${BUILD_DIR}" || exit 1
done
if [ "${distribution_status}" == "not_included" ]; then
echo "adding integration/distribution"
# clone distribution and add it as a module in root pom
git clone "https://git.opendaylight.org/gerrit/p/integration/distribution"
- cd distribution
+ cd distribution || exit 1
git checkout "${DISTRIBUTION_BRANCH_TO_BUILD}"
- cd "${BUILD_DIR}"
+ cd "${BUILD_DIR}" || exit 1
echo "<module>distribution</module>" >> ${POM_FILE}
fi
# finish pom file
-echo "</modules>" >> ${POM_FILE}
-echo "</project>" >> ${POM_FILE}
+echo "</modules>" >> "${POM_FILE}"
+echo "</project>" >> "${POM_FILE}"