From f13cb430ae5b8b7c481635d41a77ac34dd1ce622 Mon Sep 17 00:00:00 2001 From: CamVan Nguyen Date: Mon, 18 Jun 2018 15:58:23 -0500 Subject: Post list of git commits in HB release to CMVC feature - This will enable people to see all the commits in an HB release by viewing the CMVC feature Change-Id: I824a4fc613b461ec898040dccb053d83aa79d961 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60832 Reviewed-by: Sameer R. Veer Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- src/build/citest/auto-release | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/build/citest') diff --git a/src/build/citest/auto-release b/src/build/citest/auto-release index aea767182..8110d397c 100755 --- a/src/build/citest/auto-release +++ b/src/build/citest/auto-release @@ -146,7 +146,7 @@ function buildrel-create-track { # echo -e "[$(date)]\n##### -> git checkout gerrit/master || exit -1\n" git checkout gerrit/master || exit -1 - # + # echo -e "[$(date)]\n#####-> hbRelease create-track --level $RELEASE_NAME\ --release $FIPS_RELEASE --released $PREVIOUS_RELEASE --track \ $EXISTING_TRACK || exit -1\n" @@ -339,6 +339,16 @@ function build { git log --date=short --pretty=format:"%h - %an, %ad : %s" ${PREVIOUS_RELEASE}..${RELEASE_NAME}|egrep -v "$RELEASE_NAME|$PREVIOUS_RELEASE" >> $RELEASENOTESTXT echo -e "#--------------------------#\n" >> $RELEASENOTESTXT cat $RELEASENOTESTXT | mail -s "List of commit(s) in track:$FEATURE (release: $RELEASE_NAME)" $RELEASE_ADMINS + + # CMVC_FEATURE_FILE contains one line: 'FEATURE='. + # Get the feature# + IFS='=', read -r -a featureArray <<< $FEATURE + feature=${featureArray[1]} + # RELEASENOTESTXT contains the list of git commits in the HB release + # Post the list to the CMVC feature by adding the content of + # RELEASENOTESTXT as remarks to the feature identified by $feature + Feature -note $feature -remarks "$(cat $RELEASENOTESTXT)" + # ### @todo RTC:171143 ### Sleep for 5 minutes to allow time for CMVC req's to take effect -- cgit v1.2.1