Merge pull request #491 from rosslagerwall/cp7644-v2

CP-7644: Write XenCenter product version and build number
This commit is contained in:
Gabor Apati-Nagy 2015-06-09 10:31:47 +01:00
commit 8911939172
2 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,7 @@ then
fi fi
#update local xenadmin-ref.hg repository #update local xenadmin-ref.hg repository
cp ${OUTPUT_DIR}/{manifest,latest-*-build} ${ROOT}/xenadmin-ref.hg cp ${OUTPUT_DIR}/{manifest,latest-*-build,xcversion} ${ROOT}/xenadmin-ref.hg
cd ${ROOT}/xenadmin-ref.hg && hg commit -m "Latest successful build ${get_BUILD_ID}" cd ${ROOT}/xenadmin-ref.hg && hg commit -m "Latest successful build ${get_BUILD_ID}"
if [ ${XS_BRANCH} = "trunk" ] if [ ${XS_BRANCH} = "trunk" ]

View File

@ -431,6 +431,10 @@ else
echo ${get_BUILD_URL} >> ${OUTPUT_DIR}/latest-successful-build echo ${get_BUILD_URL} >> ${OUTPUT_DIR}/latest-successful-build
fi fi
# Write out version information
echo "xc_product_version=${XC_PRODUCT_VERSION}" >> ${OUTPUT_DIR}/xcversion
echo "build_number=${BUILD_NUMBER}" >> ${OUTPUT_DIR}/xcversion
echo "Build phase succeeded at " echo "Build phase succeeded at "
date date