hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sp...@apache.org
Subject hive git commit: HIVE-13654: Add JAVA8_URL to jenkins-submit-build.sh
Date Fri, 29 Apr 2016 21:10:34 GMT
Repository: hive
Updated Branches:
  refs/heads/master 324a2c6ec -> 9179178e4


HIVE-13654: Add JAVA8_URL to jenkins-submit-build.sh


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

Branch: refs/heads/master
Commit: 9179178e46420cb829f489a8ba59733554d8de4c
Parents: 324a2c6
Author: Sergio Pena <sergio.pena@cloudera.com>
Authored: Fri Apr 29 16:07:55 2016 -0500
Committer: Sergio Pena <sergio.pena@cloudera.com>
Committed: Fri Apr 29 16:07:55 2016 -0500

----------------------------------------------------------------------
 dev-support/jenkins-common.sh       | 14 ++++++++++++++
 dev-support/jenkins-submit-build.sh |  4 ++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/9179178e/dev-support/jenkins-common.sh
----------------------------------------------------------------------
diff --git a/dev-support/jenkins-common.sh b/dev-support/jenkins-common.sh
index 473fd16..dc98db5 100644
--- a/dev-support/jenkins-common.sh
+++ b/dev-support/jenkins-common.sh
@@ -101,3 +101,17 @@ process_jira() {
 patch_contains_hms_upgrade() {
 	curl -s "$1" | grep "^diff.*metastore/scripts/upgrade/" >/dev/null
 }
+
+string_to_upper_case() {
+  local str="$1"
+
+  echo "$str" | tr '[:lower:]' '[:upper:]'
+}
+
+get_jenkins_job_url() {
+  local branch="$1"
+  local varname=`string_to_upper_case $branch`_URL
+  local joburl=`eval echo \\$${varname}`
+
+  echo $joburl
+}

http://git-wip-us.apache.org/repos/asf/hive/blob/9179178e/dev-support/jenkins-submit-build.sh
----------------------------------------------------------------------
diff --git a/dev-support/jenkins-submit-build.sh b/dev-support/jenkins-submit-build.sh
index a145e00..d055c38 100644
--- a/dev-support/jenkins-submit-build.sh
+++ b/dev-support/jenkins-submit-build.sh
@@ -48,6 +48,10 @@ case "$BUILD_PROFILE" in
    test -n "$BEELINE_CLI_URL" || fail "BEELINE_CLI_URL must be specified"
    url="$BEELINE_CLI_URL&ISSUE_NUM=$ISSUE_NUM"
   ;;
+  java8-mr2)
+   test -n "$JAVA8_URL" || fail "JAVA8_URL must be specified"
+   url="$JAVA8_URL&ISSUE_NUM=$ISSUE_NUM"
+  ;;
   *)
   echo "Unknown profile '$BUILD_PROFILE'"
   exit 1


Mime
View raw message