mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
Change to using the long commit ID instead of short commit ID
to help automation testing scripts calculate more information. Sync'ed up the code between LINUX and UBUNTU builds so the variables are more similar
This commit is contained in:
parent
faae45d8fc
commit
e64d8d8567
@ -177,7 +177,7 @@ then
|
||||
short_short_ver=`cat Version|cut -d. -f 1`
|
||||
build_time=`date`
|
||||
build_machine=`hostname`
|
||||
commit_id=`git rev-parse --short HEAD`
|
||||
commit_id=`git rev-parse HEAD`
|
||||
|
||||
package_dir_name=debs$REL
|
||||
#TODO: define the core path and tarball name
|
||||
@ -362,14 +362,14 @@ __EOF__
|
||||
chmod 775 mklocalrepo.sh
|
||||
|
||||
#
|
||||
# Add a buildinfo file under xcat-core to track information about the build
|
||||
# Add a buildinfo file into the tar.bz2 file to track information about the build
|
||||
#
|
||||
buildinfo=$local_core_repo_path/buildinfo
|
||||
echo "VERSION=$ver" > $buildinfo
|
||||
echo "RELEASE=$xcat_release" >> $buildinfo
|
||||
echo "BUILD_TIME=$build_time" >> $buildinfo
|
||||
echo "BUILD_MACHINE=$build_machine" >> $buildinfo
|
||||
echo "COMMIT_ID=$commit_id" >> $buildinfo
|
||||
BUILDINFO=$local_core_repo_path/buildinfo
|
||||
echo "VERSION=$ver" > $BUILDINFO
|
||||
echo "RELEASE=$xcat_release" >> $BUILDINFO
|
||||
echo "BUILD_TIME=$build_time" >> $BUILDINFO
|
||||
echo "BUILD_MACHINE=$build_machine" >> $BUILDINFO
|
||||
echo "COMMIT_ID=$commit_id" >> $BUILDINFO
|
||||
|
||||
#create the xcat-core.list file
|
||||
|
||||
|
@ -188,7 +188,7 @@ function setversionvars {
|
||||
SHORTSHORTVER=`echo $VER|cut -d. -f 1`
|
||||
BUILD_TIME=`date`
|
||||
BUILD_MACHINE=`hostname`
|
||||
COMMIT_ID=`git rev-parse --short HEAD`
|
||||
COMMIT_ID=`git rev-parse HEAD`
|
||||
XCAT_RELEASE="snap$(date '+%Y%m%d%H%M')"
|
||||
echo "$XCAT_RELEASE" >Release
|
||||
}
|
||||
@ -541,7 +541,7 @@ else
|
||||
fi
|
||||
|
||||
#
|
||||
# Add a VERSION file into the tar.bz2 file to track information about the build
|
||||
# Add a buildinfo file into the tar.bz2 file to track information about the build
|
||||
#
|
||||
BUILDINFO=$XCATCORE/buildinfo
|
||||
echo "VERSION=$VER" > $BUILDINFO
|
||||
|
Loading…
x
Reference in New Issue
Block a user