HIVE-13070: Precommit HMS tests should run in addition to precommit normal 
tests, not instead of (Jesus Camacho Rodriguez, reviewed by Sergio Peña)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/bc8de94a
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/bc8de94a
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/bc8de94a

Branch: refs/heads/llap
Commit: bc8de94ae7ebd5da9fe2df0a529a1e13b7c17932
Parents: 4df2a01
Author: Jesus Camacho Rodriguez <jcama...@apache.org>
Authored: Tue Feb 23 18:36:54 2016 +0100
Committer: Jesus Camacho Rodriguez <jcama...@apache.org>
Committed: Tue Feb 23 18:48:13 2016 +0100

----------------------------------------------------------------------
 dev-support/jenkins-common.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/bc8de94a/dev-support/jenkins-common.sh
----------------------------------------------------------------------
diff --git a/dev-support/jenkins-common.sh b/dev-support/jenkins-common.sh
index 6aa5273..473fd16 100644
--- a/dev-support/jenkins-common.sh
+++ b/dev-support/jenkins-common.sh
@@ -49,7 +49,11 @@ process_jira() {
   fi
   # ensure attachment has not already been tested
   ATTACHMENT_ID=$(basename $(dirname $PATCH_URL))
-  if grep -q "ATTACHMENT ID: $ATTACHMENT_ID" $JIRA_TEXT
+  if test -n "$BUILD_TAG"
+  then
+    build_postfix=" - ${BUILD_TAG%-*}"
+  fi
+  if grep -q "ATTACHMENT ID: $ATTACHMENT_ID $build_postfix" $JIRA_TEXT
   then
     fail "Attachment $ATTACHMENT_ID is already tested for $JIRA_NAME"
   fi
@@ -96,4 +100,4 @@ process_jira() {
 # Returns 0 if there are changes; non-zero value otherwise.
 patch_contains_hms_upgrade() {
        curl -s "$1" | grep "^diff.*metastore/scripts/upgrade/" >/dev/null
-}
\ No newline at end of file
+}

Reply via email to