$GERRIT_EVENT_TYPE != "change-merged" should cover comments added etc. 72/672/1
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 27 May 2015 16:24:58 +0000 (12:24 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 27 May 2015 16:24:58 +0000 (12:24 -0400)
Change-Id: I47d8872382dcc488c9e1c43e06de00c4fcc213d3
JIRA:DOCS-36
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/opnfvdocs/docu-build.sh

index ba69087..848466e 100644 (file)
@@ -8,7 +8,7 @@ export PATH=$PATH:/usr/local/bin/
 git_sha1="$(git rev-parse HEAD)"
 docu_build_date="$(date)"
 
 git_sha1="$(git rev-parse HEAD)"
 docu_build_date="$(date)"
 
-if [[ $GERRIT_EVENT_TYPE = "patchset-created" ]] ; then
+if [[ $GERRIT_EVENT_TYPE != "change-merged" ]] ; then
     patchset="/$GERRIT_CHANGE_NUMBER"
 fi
 
     patchset="/$GERRIT_CHANGE_NUMBER"
 fi