diff --git a/tools/build-system/launch-build-machine-jenkins.sh b/tools/build-system/launch-build-machine-jenkins.sh index 9891a5f2b898a70a98690df3761698dbb5e6c26a..e3740e2430194b19be474a78ac440af34159ed6b 100755 --- a/tools/build-system/launch-build-machine-jenkins.sh +++ b/tools/build-system/launch-build-machine-jenkins.sh @@ -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=""