Skip to content

Commit

Permalink
Include release track info in list-of-commits email
Browse files Browse the repository at this point in the history
Change-Id: Ib3b34e5414a893110ec9b4ffffa6ab1714b82862
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58666
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sameer R. Veer <sveer@us.ibm.com>
Disable-CI: Sameer R. Veer <sveer@us.ibm.com>
  • Loading branch information
Sameer Veer authored and dcrowell77 committed May 14, 2018
1 parent f5024f6 commit 22672ed
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/build/citest/auto-release
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,6 @@ function build {
### Push tag to gerrit, create track and checkin files
git push ssh://hostboot-us@gerrit-server/hostboot $RELEASE_NAME || exit -1
git checkout gerrit/master || exit -1
echo -e "The list of commits included in ${RELEASE_NAME}:\n" > $RELEASENOTESTXT
echo -e "---------------------------------------------" >> $RELEASENOTESTXT
git log --date=short --pretty=format:"%h - %an, %ad : %s" ${PREVIOUS_RELEASE}..${RELEASE_NAME}|egrep -v "$RELEASE_NAME|$PREVIOUS_RELEASE" >> $RELEASENOTESTXT
echo -e "#-----------<E-O-F>---------------#\n" >> $RELEASENOTESTXT
cat $RELEASENOTESTXT | mail -s "List of commit(s) in $RELEASE_NAME, details inside" $RELEASE_ADMINS
#
hbRelease pre-release --level $RELEASE_NAME --release $FIPS_RELEASE --checkInDir $CMVC_DIR --released $PREVIOUS_RELEASE --track $EXISTING_TRACK || exit -1
# Check if feature was successfully created and if so set $FEATURE
Expand All @@ -338,7 +333,13 @@ function build {
echo "No feature created"
exit -1
fi

#
echo -e "The list of commits included in track:$FEATURE (release:${RELEASE_NAME}):\n" > $RELEASENOTESTXT
echo -e "---------------------------------------------" >> $RELEASENOTESTXT
git log --date=short --pretty=format:"%h - %an, %ad : %s" ${PREVIOUS_RELEASE}..${RELEASE_NAME}|egrep -v "$RELEASE_NAME|$PREVIOUS_RELEASE" >> $RELEASENOTESTXT
echo -e "#-----------<E-O-F>---------------#\n" >> $RELEASENOTESTXT
cat $RELEASENOTESTXT | mail -s "List of commit(s) in track:$FEATURE (release: $RELEASE_NAME)" $RELEASE_ADMINS
#
### @todo RTC:171143
### Sleep for 5 minutes to allow time for CMVC req's to take effect

Expand Down

0 comments on commit 22672ed

Please sign in to comment.