tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject tez git commit: Revert "TEZ-3913. Precommit build fails to post to JIRA (Jason Lowe via jeagles)"
Date Mon, 09 Apr 2018 21:37:08 GMT
Repository: tez
Updated Branches:
  refs/heads/master 9b3f8c73d -> 9431ce6c3


Revert "TEZ-3913. Precommit build fails to post to JIRA (Jason Lowe via jeagles)"

This reverts commit 9b3f8c73d4268bfa04c2a1dc5cd5c027af888a06.


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

Branch: refs/heads/master
Commit: 9431ce6c358dbefa8973c2ebe4c0bed17645ddba
Parents: 9b3f8c7
Author: Jason Lowe <jlowe@apache.org>
Authored: Mon Apr 9 16:36:53 2018 -0500
Committer: Jason Lowe <jlowe@apache.org>
Committed: Mon Apr 9 16:36:53 2018 -0500

----------------------------------------------------------------------
 build-tools/test-patch.sh | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/9431ce6c/build-tools/test-patch.sh
----------------------------------------------------------------------
diff --git a/build-tools/test-patch.sh b/build-tools/test-patch.sh
index 7a19e2e..e1fa0fb 100755
--- a/build-tools/test-patch.sh
+++ b/build-tools/test-patch.sh
@@ -38,7 +38,6 @@ GREP=${GREP:-grep}
 PATCH=${PATCH:-patch}
 DIFF=${DIFF:-diff}
 JIRACLI=${JIRA:-jira}
-CURL=${CURL:-curl}
 FINDBUGS_HOME=${FINDBUGS_HOME}
 
 ###############################################################################
@@ -703,24 +702,10 @@ $comment"
     echo "======================================================================"
     echo ""
     echo ""
-
-    # RESTify the comment
-    jsoncomment=$(echo "$comment" \
-      | ${SED} -e 's,\\,\\\\,g' \
-        -e 's,\",\\\",g' \
-        -e 's,$,\\r\\n,g' \
-      | tr -d '\n')
-    jsoncomment='{"body":"'"$jsoncomment"'"}'
-
     ### Update Jira with a comment
-    ${CURL} -X POST \
-      -H "Accept: application/json" \
-      -H "Content-Type: application/json" \
-      -u "tezqa:${JIRA_PASSWD}" \
-      -d "$jsoncomment" \
-      --silent --location \
-      "https://issues.apache.org/jira/rest/api/2/issue/${defect}/comment" \
-      >/dev/null
+    export USER=hudson
+    $JIRACLI -s https://issues.apache.org/jira -a addcomment -u tezqa -p $JIRA_PASSWD --comment
"$comment" --issue $defect
+    $JIRACLI -s https://issues.apache.org/jira -a logout -u tezqa -p $JIRA_PASSWD
   fi
 }
 


Mime
View raw message