Skip to content
Snippets Groups Projects
Commit fc023f51 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

jenkins: use last tag for release, not current version.

Refs #51465

Change-Id: I7d58edbdd3e3e1952d8e95fa8c522c3a847a7cbf
parent 2740f812
No related branches found
Tags
No related merge requests found
......@@ -133,18 +133,6 @@ cd ${REFERENCE_REPOSITORY}
echo "Update reference sources"
git checkout . && git checkout -f master && git pull
# If release, checkout the latest tag
if [ ${IS_RELEASE} ]; then
git checkout ${VERSION_NUMBER}
fi
echo "Retrieve build info"
# retrieve info we may need
if [ ${IS_KDE_CLIENT} ]; then
TAG_NAME_PREFIX="kde."
LAUNCHPAD_PACKAGES=( "sflphone-kde" )
fi
# Get the version
CURRENT_RELEASE_TAG_NAME=`git describe --tags --abbrev=0`
PREVIOUS_RELEASE_TAG_NAME=`git describe --tags --abbrev=0 ${CURRENT_RELEASE_TAG_NAME}^`
......@@ -164,6 +152,19 @@ else
PREVIOUS_VERSION=${PREVIOUS_RELEASE_TAG_NAME}
fi
# If release, checkout the latest tag
if [ ${IS_RELEASE} ]; then
git checkout ${CURRENT_RELEASE_TAG_NAME}
fi
echo "Retrieve build info"
# retrieve info we may need
if [ ${IS_KDE_CLIENT} ]; then
TAG_NAME_PREFIX="kde."
LAUNCHPAD_PACKAGES=( "sflphone-kde" )
fi
cd ${LAUNCHPAD_DIR}
COMMIT_HASH_BEGIN=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment