You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ab...@apache.org on 2019/09/11 10:16:47 UTC

[hive] branch master updated: HIVE-21604: preCommit job should not be triggered on non-patch attachments (Laszlo Bodor reviewed by Zoltan Haindrich)

This is an automated email from the ASF dual-hosted git repository.

abstractdog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 02975b3  HIVE-21604: preCommit job should not be triggered on non-patch attachments (Laszlo Bodor reviewed by Zoltan Haindrich)
02975b3 is described below

commit 02975b3bf2139d8045f540bbc8400a6e030743bc
Author: Laszlo Bodor <bo...@gmail.com>
AuthorDate: Wed Sep 11 12:16:36 2019 +0200

    HIVE-21604: preCommit job should not be triggered on non-patch attachments (Laszlo Bodor reviewed by Zoltan Haindrich)
    
    Signed-off-by: Laszlo Bodor <bo...@gmail.com>
---
 dev-support/jenkins-common.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-support/jenkins-common.sh b/dev-support/jenkins-common.sh
index 4edf398..e9ba9e3 100644
--- a/dev-support/jenkins-common.sh
+++ b/dev-support/jenkins-common.sh
@@ -103,8 +103,8 @@ is_check_no_precommit_tests_set() {
 
 # Gets the URL for the JIRA patch attached
 get_jira_patch_url() {
-  grep -o '"/jira/secure/attachment/[0-9]*/[^"]*' $1 | grep -v -e 'htm[l]*$' | sort | tail -1 | \
-    grep -o '/jira/secure/attachment/[0-9]*/[^"]*'
+  grep -o '"/jira/secure/attachment/[0-9]*/[^"]*\.patch*' $1 | sort | tail -1 | \
+    grep -o '/jira/secure/attachment/[0-9]*/[^"]*\.patch*'
 }
 
 # Checks if the patch was already tested