You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jd...@apache.org on 2016/05/01 03:31:03 UTC
[09/11] hive git commit: HIVE-13654: Add JAVA8_URL to
jenkins-submit-build.sh
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/llap
Commit: 9179178e46420cb829f489a8ba59733554d8de4c
Parents: 324a2c6
Author: Sergio Pena <se...@cloudera.com>
Authored: Fri Apr 29 16:07:55 2016 -0500
Committer: Sergio Pena <se...@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