Skip to content
Snippets Groups Projects
Commit 1f6ca48a authored by Emmanuel Milou's avatar Emmanuel Milou Committed by Tristan Matthews
Browse files

jenkins: fix build tools patching system

Refs #51822

Change-Id: I51b46628f101cdb4bef8fcae4ba947923cc97f22
parent 8f0d87f2
No related branches found
No related tags found
No related merge requests found
......@@ -152,20 +152,6 @@ else
PREVIOUS_VERSION=${PREVIOUS_RELEASE_TAG_NAME}
fi
# If release, checkout the latest tag
if [ ${IS_RELEASE} ]; then
git checkout ${CURRENT_RELEASE_TAG_NAME}
# When we need to apply an emergency patch for the release builds
# This should only be used to temporarily patch packaging tools, not
# daemon/client code (or anything else that build_tarball would grab).
if [ -d /tmp/sflphone_release_patch ]; then
echo "Applying patch(es) to packaging tools..."
git apply /tmp/sflphone_release_patch/*
rm -rf /tmp/sflphone_release_patch
REQUIRE_RESET=1
fi
fi
echo "Retrieve build info"
# retrieve info we may need
......@@ -196,6 +182,22 @@ VERSION="${SOFTWARE_VERSION}~ppa${VERSION_INDEX}~SYSTEM"
echo "Clean build directory"
git clean -f -x ${LAUNCHPAD_DIR}/* >/dev/null
git checkout ${LAUNCHPAD_DIR}
# If release, checkout the latest tag
if [ ${IS_RELEASE} ]; then
git checkout ${CURRENT_RELEASE_TAG_NAME}
# When we need to apply an emergency patch for the release builds
# This should only be used to temporarily patch packaging tools, not
# daemon/client code (or anything else that build_tarball would grab).
if [ -d /tmp/sflphone_release_patch ]; then
echo "Applying patch(es) to packaging tools..."
git apply --verbose /tmp/sflphone_release_patch/*
rm -rf /tmp/sflphone_release_patch
REQUIRE_RESET=1
fi
fi
get_dir_name() {
case $1 in
......@@ -223,6 +225,7 @@ get_dir_name() {
esac
}
# Looping over the packages
for LAUNCHPAD_PACKAGE in ${LAUNCHPAD_PACKAGES[*]}
do
echo " Package: ${LAUNCHPAD_PACKAGE}"
......@@ -232,9 +235,6 @@ do
DEBIAN_DIR="${LAUNCHPAD_DIR}/${LAUNCHPAD_PACKAGE}/debian"
echo " --> Clean debian directory"
git checkout ${DEBIAN_DIR}
echo " --> Retrieve new sources"
DIRNAME=`get_dir_name ${LAUNCHPAD_PACKAGE}`
cp -r ${REFERENCE_REPOSITORY}/${DIRNAME}/* ${LAUNCHPAD_DIR}/${LAUNCHPAD_PACKAGE}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment