You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by jl...@apache.org on 2020/03/24 22:26:39 UTC

[incubator-pinot] 01/01: Deploy pinot to bintray

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

jlli pushed a commit to branch pinot-jfrog-bintray
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git

commit 0135d800eba1b508142c0dd333424494a5bba1c0
Author: jackjlli <jl...@linkedin.com>
AuthorDate: Tue Mar 24 15:26:10 2020 -0700

    Deploy pinot to bintray
---
 .../pinot-kafka-base/pom.xml => .ci.settings.xml   | 26 +++---
 .travis.yml                                        | 60 ++++----------
 .travis_install.sh                                 | 93 ++++++++++++----------
 .travis_nightly_build.sh                           | 27 +++++++
 pinot-broker/pom.xml                               |  2 +-
 pinot-clients/pinot-java-client/pom.xml            |  2 +-
 pinot-clients/pom.xml                              |  2 +-
 pinot-common/pom.xml                               |  2 +-
 pinot-controller/pom.xml                           |  2 +-
 pinot-core/pom.xml                                 |  2 +-
 pinot-distribution/pom.xml                         |  2 +-
 pinot-integration-tests/pom.xml                    |  2 +-
 pinot-minion/pom.xml                               |  2 +-
 pinot-perf/pom.xml                                 |  2 +-
 .../pinot-batch-ingestion-common/pom.xml           |  2 +-
 .../pinot-batch-ingestion-hadoop/pom.xml           |  2 +-
 .../pinot-batch-ingestion-spark/pom.xml            |  2 +-
 .../pinot-batch-ingestion-standalone/pom.xml       |  2 +-
 pinot-plugins/pinot-batch-ingestion/pom.xml        |  2 +-
 .../v0_deprecated/pinot-hadoop/pom.xml             |  2 +-
 .../v0_deprecated/pinot-ingestion-common/pom.xml   |  2 +-
 .../v0_deprecated/pinot-spark/pom.xml              |  2 +-
 .../pinot-batch-ingestion/v0_deprecated/pom.xml    |  2 +-
 pinot-plugins/pinot-file-system/pinot-adls/pom.xml |  2 +-
 pinot-plugins/pinot-file-system/pinot-gcs/pom.xml  |  2 +-
 pinot-plugins/pinot-file-system/pinot-hdfs/pom.xml |  2 +-
 pinot-plugins/pinot-file-system/pom.xml            |  2 +-
 .../pinot-input-format/pinot-avro-base/pom.xml     |  2 +-
 .../pinot-input-format/pinot-avro/pom.xml          |  2 +-
 .../pinot-confluent-avro/pom.xml                   |  2 +-
 pinot-plugins/pinot-input-format/pinot-csv/pom.xml |  2 +-
 .../pinot-input-format/pinot-json/pom.xml          |  2 +-
 pinot-plugins/pinot-input-format/pinot-orc/pom.xml |  2 +-
 .../pinot-input-format/pinot-parquet/pom.xml       |  2 +-
 .../pinot-input-format/pinot-thrift/pom.xml        |  2 +-
 pinot-plugins/pinot-input-format/pom.xml           |  2 +-
 .../pinot-stream-ingestion/pinot-kafka-0.9/pom.xml |  2 +-
 .../pinot-stream-ingestion/pinot-kafka-2.0/pom.xml |  2 +-
 .../pinot-kafka-base/pom.xml                       |  2 +-
 pinot-plugins/pinot-stream-ingestion/pom.xml       |  2 +-
 pinot-plugins/pom.xml                              |  2 +-
 pinot-server/pom.xml                               |  2 +-
 pinot-spi/pom.xml                                  |  2 +-
 pinot-tools/pom.xml                                |  2 +-
 pom.xml                                            | 35 +++++++-
 45 files changed, 176 insertions(+), 145 deletions(-)

diff --git a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml b/.ci.settings.xml
similarity index 58%
copy from pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml
copy to .ci.settings.xml
index 001df60..debfe83 100644
--- a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml
+++ b/.ci.settings.xml
@@ -19,19 +19,13 @@
     under the License.
 
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <parent>
-    <artifactId>pinot-stream-ingestion</artifactId>
-    <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <artifactId>pinot-kafka-base</artifactId>
-  <name>Pinot Kafka Base</name>
-  <url>https://pinot.apache.org/</url>
-  <properties>
-    <pinot.root>${basedir}/../../..</pinot.root>
-  </properties>
-</project>
+<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
+          xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+  <servers>
+    <server>
+      <id>bintray-linkedin-test-repo</id>
+      <username>${env.MVN_DEPLOY_BINTRAY_USER}</username>
+      <password>${env.MVN_DEPLOY_BINTRAY_KEY}</password>
+    </server>
+  </servers>
+</settings>
diff --git a/.travis.yml b/.travis.yml
index 0096320..78365d0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,57 +1,25 @@
 language: java
 sudo: false
 dist: trusty
-
 before_install:
-  - mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && chmod +x ~/bin/jq
-  - export PATH=$PATH:~/bin
-  - jq --version
-
+- mkdir -p ~/bin && curl -sSL -o ~/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
+  && chmod +x ~/bin/jq
+- export PATH=$PATH:~/bin
+- jq --version
+- export DEV_VERSION="-dev-${TRAVIS_BUILD_NUMBER}"
 jdk:
-  - oraclejdk8
-
+- oraclejdk8
 cache:
   directories:
-    - $HOME/.m2
+  - "$HOME/.m2"
   yarn: true
-
 addons:
   firefox: latest
-
 install:
-  - ./.travis_install.sh
-
-branches:
-  only:
-    - master
-
-jobs:
-  include:
-    - name: "Integration Tests - OracleJDK 8"
-      jdk: oraclejdk8
-      script:
-        - ./.travis_test.sh
-      env:
-        - RUN_INTEGRATION_TESTS=true
-    - name: "Unit Tests - OracleJDK 8"
-      jdk: oraclejdk8
-      script:
-        - ./.travis_test.sh
-      env:
-        - RUN_INTEGRATION_TESTS=false
-    - name: "QuickStart - OracleJDK 8"
-      jdk: oraclejdk8
-      script:
-        - ./.travis_quickstart.sh
-    - name: "QuickStart - OracleJDK 11"
-      jdk: oraclejdk11
-      script:
-        - ./.travis_quickstart.sh
-    - name: "QuickStart - OpenJDK 8"
-      jdk: openjdk8
-      script:
-        - ./.travis_quickstart.sh
-    - name: "QuickStart - OpenJDK 11"
-      jdk: openjdk11
-      script:
-        - ./.travis_quickstart.sh
+- "./.travis_install.sh"
+script:
+- "./.travis_nightly_build.sh"
+env:
+  global:
+  - secure: R3NdobUAThkk6BBzXapek6PiuWHWa1ldnJBvXpk2TAi7Lua/Ctgg8EHCSve7+MK4SU3XFJSi1th32+VSy0K/ARfdVcxiVh6EJSL/Nw0LRQSvGk7VjO382SsWCFoJuZBBqjy9DfBgRLdoqEPfulIBC0XBxjJ+4xedRptkZo7+TAAvtB8Y32EA5ve+Z4cdJipLF1tviL5q2rVbkNXucYUYO2XIv5HOzF2Xy3Hw6lsNrHpbes2CLEkoMiLOQ30zfbXZT/5Xd6OhQNmoZJ9gKziT1opiN2AJMPv269K8FFJZTrDZX74/thq9wmeF4X4f3wPA7EbTupooj0i9LPzb8Xev1QKAsxBtHyRm9NGYOXM06c2yKiGsDtT4HZYQGk4m8/89moe3oGnEwvw/JLu5RvLIZzFE2cBhHrcxRAJgHLIr80+kebNg/YstNlDL+rmP0b9NRrGIVw5OO2BT27ZBgsMFmjnujQtCUJiJ [...]
+  - secure: Hj71ADg7ZgQpn8PUbEjaz1RrjkPfPCpGksp+WDjE6jf+oDvl55ILQhPgNcxIy81UcxS3Gmx6UWteVGkNV4Fi59TJIQ8KPbQ9RU2FFVXcxHH2TmkOvdNezwkJIFUw0TNMCbRAXgDj7ov75BM6lLi271GfqPVg9pB504Bc43WohnV6lDo/y93Z/xWbuFk5uJ+cogAJme3pvYHxBNlNzwIYnNAAqrEb+YKsRuux3qWLTlm1guT78g3C9wl/WCelTo1A3hGd12FqFWmowcoQlAyhbnFJ7u7qwfSNTSGCFLYbrUGooXqTZg2B+2QZORT2b5b0P9SXgB2a/UJxXmxkUzbmPGdUJipmQCEemlxwkPCqMW0YSscTDHU5WjSxqy4Cvwa8y+DEpLu06WxAPwjBje53025PvLjsMEfNJ0wsQbm9jkrH0alzICemXyyV5uGBCmuiMv5WqZ70WEpy7xlPlk5aFTwWQRpYJ5mh [...]
diff --git a/.travis_install.sh b/.travis_install.sh
index 28de572..88eb23d 100755
--- a/.travis_install.sh
+++ b/.travis_install.sh
@@ -18,61 +18,70 @@
 # under the License.
 #
 
-# Ignore changes not related to pinot code
-echo 'Changed files:'
-git diff --name-only $TRAVIS_COMMIT_RANGE
-if [ $? -ne 0 ]; then
-  echo 'Commit range is invalid.'
-  exit 1
-fi
-
 # ThirdEye related changes
 git diff --name-only $TRAVIS_COMMIT_RANGE | egrep '^(thirdeye)'
-noThirdEyeChange=$?
-
-if [ $noThirdEyeChange -eq 0 ]; then
+if [ $? -eq 0 ]; then
   echo 'ThirdEye changes.'
-  if [ "$RUN_INTEGRATION_TESTS" == 'false' ]; then
-    echo 'Skip ThirdEye build when integration tests off'
+
+  if [ "$TRAVIS_JDK_VERSION" != 'oraclejdk8' ]; then
+    echo 'Skip ThirdEye tests for version other than oracle jdk8.'
+    rm -rf ~/.m2/repository/com/linkedin/pinot ~/.m2/repository/com/linkedin/thirdeye
     exit 0
   fi
+
+  if [ "RUN_INTEGRATION_TESTS" == 'false' ]; then
+    echo 'Skip ThirdEye tests when integration tests off'
+    rm -rf ~/.m2/repository/com/linkedin/pinot ~/.m2/repository/com/linkedin/thirdeye
+    exit 0
+  fi
+
+  cd thirdeye
+  mvn test -B -Dsha1="${DEV_VERSION}"
+  failed=$?
+  # Remove Pinot/ThirdEye files from local Maven repository to avoid a useless cache rebuild
+  rm -rf ~/.m2/repository/com/linkedin/pinot ~/.m2/repository/com/linkedin/thirdeye
+  if [ $failed -eq 0 ]; then
+    exit 0
+  else
+    exit 1
+  fi
 fi
 
+# Only run tests for JDK 8
+if [ "$TRAVIS_JDK_VERSION" != 'oraclejdk8' ]; then
+  echo 'Skip tests for version other than oracle jdk8.'
+  # Remove Pinot files from local Maven repository to avoid a useless cache rebuild
+  rm -rf ~/.m2/repository/com/linkedin/pinot
+  exit 0
+fi
+
+passed=0
+
 KAFKA_BUILD_OPTS=""
 if [ "$KAFKA_VERSION" != '2.0' ] && [ "$KAFKA_VERSION" != '' ]; then
   KAFKA_BUILD_OPTS="-Dkafka.version=${KAFKA_VERSION}"
 fi
 
-if [ $noThirdEyeChange -ne 0 ]; then
-  echo "Full Pinot build"
-  echo "No ThirdEye changes"
-  if [ "$TRAVIS_JDK_VERSION" != 'oraclejdk8' ]; then
-    # JDK 11 prints more logs exceeding Travis limits.
-    mvn clean install -B -DskipTests=true -Pbin-dist -Dmaven.javadoc.skip=true ${KAFKA_BUILD_OPTS} > /tmp/mvn_build_log
-    if [ $? -eq 0 ]; then
-      exit 0
-    else
-      tail -1000 /tmp/mvn_build_log
-      exit 1
-    fi
-  else
-    mvn clean install -B -DskipTests=true -Pbin-dist -Dmaven.javadoc.skip=true ${KAFKA_BUILD_OPTS} || exit $?
+# Only run integration tests if needed
+if [ "$RUN_INTEGRATION_TESTS" != 'false' ]; then
+  mvn test -B -Dsha1="${DEV_VERSION}" -P travis,travis-integration-tests-only ${KAFKA_BUILD_OPTS}
+  if [ $? -eq 0 ]; then
+    passed=1
+  fi
+else
+  mvn test -B -Dsha1="${DEV_VERSION}" -P travis,travis-no-integration-tests ${KAFKA_BUILD_OPTS}
+  if [ $? -eq 0 ]; then
+    passed=1
   fi
 fi
 
-# Build ThirdEye for ThirdEye related changes
-if [ $noThirdEyeChange -eq 0 ]; then
-  echo "Partial Pinot build"
-  echo "ThirdEye changes only"
-  mvn install -B -DskipTests -Dmaven.javadoc.skip=true -Dassembly.skipAssembly=true -pl pinot-common,pinot-core,pinot-api -am
-  cd thirdeye/thirdeye-hadoop
-  mvn clean compile -B -DskipTests
-  cd ../..
-  cd thirdeye/thirdeye-pinot
-  mvn clean compile -B -DskipTests
-  cd ../..
-  #
-  # skip thirdeye-frontend as re-build happens on test
-  #
-  exit $?
+# Remove Pinot files from local Maven repository to avoid a useless cache rebuild
+rm -rf ~/.m2/repository/com/linkedin/pinot
+
+if [ $passed -eq 1 ]; then
+  # Only send code coverage data if passed
+  bash <(cat .codecov_bash)
+  exit 0
+else
+  exit 1
 fi
diff --git a/.travis_nightly_build.sh b/.travis_nightly_build.sh
new file mode 100755
index 0000000..4ad6cb4
--- /dev/null
+++ b/.travis_nightly_build.sh
@@ -0,0 +1,27 @@
+#!/bin/bash -x
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# deploy the release to bintray
+#if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
+#  echo "Deploying to bintray"
+#  mvn clean deploy --settings .ci.settings.xml -Dsha1="${DEV_VERSION}" -DskipTests
+#fi
+echo "Deploying to bintray"
+mvn deploy --settings .ci.settings.xml -Dsha1="${DEV_VERSION}" -DskipTests
diff --git a/pinot-broker/pom.xml b/pinot-broker/pom.xml
index be1e9dc..ccf4371 100644
--- a/pinot-broker/pom.xml
+++ b/pinot-broker/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-broker</artifactId>
   <name>Pinot Broker</name>
diff --git a/pinot-clients/pinot-java-client/pom.xml b/pinot-clients/pinot-java-client/pom.xml
index cc0d6cc..9192d47 100644
--- a/pinot-clients/pinot-java-client/pom.xml
+++ b/pinot-clients/pinot-java-client/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-clients</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-java-client</artifactId>
   <name>Pinot Java Client</name>
diff --git a/pinot-clients/pom.xml b/pinot-clients/pom.xml
index 52e1cb9..4b1794f 100644
--- a/pinot-clients/pom.xml
+++ b/pinot-clients/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-clients</artifactId>
   <packaging>pom</packaging>
diff --git a/pinot-common/pom.xml b/pinot-common/pom.xml
index 9b43da9..f0b2bbc 100644
--- a/pinot-common/pom.xml
+++ b/pinot-common/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-common</artifactId>
   <name>Pinot Common</name>
diff --git a/pinot-controller/pom.xml b/pinot-controller/pom.xml
index de9d299..10de4ae 100644
--- a/pinot-controller/pom.xml
+++ b/pinot-controller/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-controller</artifactId>
   <name>Pinot Controller</name>
diff --git a/pinot-core/pom.xml b/pinot-core/pom.xml
index c7179cf..040a959 100644
--- a/pinot-core/pom.xml
+++ b/pinot-core/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-core</artifactId>
   <name>Pinot Core</name>
diff --git a/pinot-distribution/pom.xml b/pinot-distribution/pom.xml
index 38f776a..59dacc5 100644
--- a/pinot-distribution/pom.xml
+++ b/pinot-distribution/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-distribution</artifactId>
   <name>Pinot Distribution</name>
diff --git a/pinot-integration-tests/pom.xml b/pinot-integration-tests/pom.xml
index 36d85b8..fdbb8f7 100644
--- a/pinot-integration-tests/pom.xml
+++ b/pinot-integration-tests/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-integration-tests</artifactId>
   <name>Pinot Integration Tests</name>
diff --git a/pinot-minion/pom.xml b/pinot-minion/pom.xml
index be862591..22dfbe9 100644
--- a/pinot-minion/pom.xml
+++ b/pinot-minion/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-minion</artifactId>
   <name>Pinot Minion</name>
diff --git a/pinot-perf/pom.xml b/pinot-perf/pom.xml
index 810a0fe..35048c1 100644
--- a/pinot-perf/pom.xml
+++ b/pinot-perf/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-perf</artifactId>
   <name>Pinot Perf</name>
diff --git a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-common/pom.xml b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-common/pom.xml
index dc63ae9..e61694c 100644
--- a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-common/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-common/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-batch-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
     <relativePath>..</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
diff --git a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-hadoop/pom.xml b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-hadoop/pom.xml
index 55bb059..1b8b4b7 100644
--- a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-hadoop/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-hadoop/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-batch-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
     <relativePath>..</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
diff --git a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-spark/pom.xml b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-spark/pom.xml
index 28496b1..55ac8f3 100644
--- a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-spark/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-spark/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-batch-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
     <relativePath>..</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
diff --git a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
index 00f1bcc..a0a6221 100644
--- a/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pinot-batch-ingestion-standalone/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-batch-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
     <relativePath>..</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
diff --git a/pinot-plugins/pinot-batch-ingestion/pom.xml b/pinot-plugins/pinot-batch-ingestion/pom.xml
index 24f96ca..5d9e21c 100644
--- a/pinot-plugins/pinot-batch-ingestion/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-plugins</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-batch-ingestion</artifactId>
   <packaging>pom</packaging>
diff --git a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/pom.xml b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/pom.xml
index 67c7bc5..134c42c 100644
--- a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-hadoop/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>v0_deprecated</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-hadoop</artifactId>
   <name>Pinot Hadoop</name>
diff --git a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-ingestion-common/pom.xml b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-ingestion-common/pom.xml
index a46406f..43e6774 100644
--- a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-ingestion-common/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-ingestion-common/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>v0_deprecated</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
     <relativePath>..</relativePath>
   </parent>
   <modelVersion>4.0.0</modelVersion>
diff --git a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-spark/pom.xml b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-spark/pom.xml
index 6a0c54f..306b3e6 100644
--- a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-spark/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pinot-spark/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>v0_deprecated</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-spark</artifactId>
   <name>Pinot Spark</name>
diff --git a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pom.xml b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pom.xml
index 1306dbf..d4f514d 100644
--- a/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pom.xml
+++ b/pinot-plugins/pinot-batch-ingestion/v0_deprecated/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-batch-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
 
   <artifactId>v0_deprecated</artifactId>
diff --git a/pinot-plugins/pinot-file-system/pinot-adls/pom.xml b/pinot-plugins/pinot-file-system/pinot-adls/pom.xml
index 0bad351..8016cce 100644
--- a/pinot-plugins/pinot-file-system/pinot-adls/pom.xml
+++ b/pinot-plugins/pinot-file-system/pinot-adls/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-file-system</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-adls</artifactId>
   <groupId>org.apache.pinot.plugins</groupId>
diff --git a/pinot-plugins/pinot-file-system/pinot-gcs/pom.xml b/pinot-plugins/pinot-file-system/pinot-gcs/pom.xml
index 0a5a221..37c02e2 100644
--- a/pinot-plugins/pinot-file-system/pinot-gcs/pom.xml
+++ b/pinot-plugins/pinot-file-system/pinot-gcs/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-file-system</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
 
   <artifactId>pinot-gcs</artifactId>
diff --git a/pinot-plugins/pinot-file-system/pinot-hdfs/pom.xml b/pinot-plugins/pinot-file-system/pinot-hdfs/pom.xml
index eadfd35..5be57f9 100644
--- a/pinot-plugins/pinot-file-system/pinot-hdfs/pom.xml
+++ b/pinot-plugins/pinot-file-system/pinot-hdfs/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-file-system</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-hdfs</artifactId>
   <name>Pinot Hadoop Filesystem</name>
diff --git a/pinot-plugins/pinot-file-system/pom.xml b/pinot-plugins/pinot-file-system/pom.xml
index db85c73..c2bcfd2 100644
--- a/pinot-plugins/pinot-file-system/pom.xml
+++ b/pinot-plugins/pinot-file-system/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-plugins</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
 
   <artifactId>pinot-file-system</artifactId>
diff --git a/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml b/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
index 485a59d..07d3f1d 100644
--- a/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-avro-base/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-avro/pom.xml b/pinot-plugins/pinot-input-format/pinot-avro/pom.xml
index 378955a..362fbda 100644
--- a/pinot-plugins/pinot-input-format/pinot-avro/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-avro/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-confluent-avro/pom.xml b/pinot-plugins/pinot-input-format/pinot-confluent-avro/pom.xml
index a819b18..8f04cd9 100644
--- a/pinot-plugins/pinot-input-format/pinot-confluent-avro/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-confluent-avro/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-csv/pom.xml b/pinot-plugins/pinot-input-format/pinot-csv/pom.xml
index e1238de..6013c44 100644
--- a/pinot-plugins/pinot-input-format/pinot-csv/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-csv/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-json/pom.xml b/pinot-plugins/pinot-input-format/pinot-json/pom.xml
index 64b5465..94d263c 100644
--- a/pinot-plugins/pinot-input-format/pinot-json/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-json/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-orc/pom.xml b/pinot-plugins/pinot-input-format/pinot-orc/pom.xml
index e61f838..8eee3d1 100644
--- a/pinot-plugins/pinot-input-format/pinot-orc/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-orc/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-parquet/pom.xml b/pinot-plugins/pinot-input-format/pinot-parquet/pom.xml
index d8d8360..cce66a2 100644
--- a/pinot-plugins/pinot-input-format/pinot-parquet/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-parquet/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pinot-thrift/pom.xml b/pinot-plugins/pinot-input-format/pinot-thrift/pom.xml
index 148c4d9..5a70825 100644
--- a/pinot-plugins/pinot-input-format/pinot-thrift/pom.xml
+++ b/pinot-plugins/pinot-input-format/pinot-thrift/pom.xml
@@ -24,7 +24,7 @@
   <parent>
     <artifactId>pinot-input-format</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/pinot-plugins/pinot-input-format/pom.xml b/pinot-plugins/pinot-input-format/pom.xml
index 7c5b1eb..35bbd0f 100644
--- a/pinot-plugins/pinot-input-format/pom.xml
+++ b/pinot-plugins/pinot-input-format/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-plugins</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
 
   <artifactId>pinot-input-format</artifactId>
diff --git a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-0.9/pom.xml b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-0.9/pom.xml
index 906dee2..806c187 100644
--- a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-0.9/pom.xml
+++ b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-0.9/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-stream-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>pinot-kafka-0.9</artifactId>
diff --git a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml
index 164c2cd..31d6ee6 100644
--- a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml
+++ b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-2.0/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-stream-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>pinot-kafka-2.0</artifactId>
diff --git a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml
index 001df60..79503fa 100644
--- a/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml
+++ b/pinot-plugins/pinot-stream-ingestion/pinot-kafka-base/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot-stream-ingestion</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <artifactId>pinot-kafka-base</artifactId>
diff --git a/pinot-plugins/pinot-stream-ingestion/pom.xml b/pinot-plugins/pinot-stream-ingestion/pom.xml
index 32df55a..ba7ef62 100644
--- a/pinot-plugins/pinot-stream-ingestion/pom.xml
+++ b/pinot-plugins/pinot-stream-ingestion/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot-plugins</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-stream-ingestion</artifactId>
   <packaging>pom</packaging>
diff --git a/pinot-plugins/pom.xml b/pinot-plugins/pom.xml
index 24f20c3..9832707 100644
--- a/pinot-plugins/pom.xml
+++ b/pinot-plugins/pom.xml
@@ -26,7 +26,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-plugins</artifactId>
   <packaging>pom</packaging>
diff --git a/pinot-server/pom.xml b/pinot-server/pom.xml
index 0161e05..a76e1cc 100644
--- a/pinot-server/pom.xml
+++ b/pinot-server/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-server</artifactId>
   <name>Pinot Server</name>
diff --git a/pinot-spi/pom.xml b/pinot-spi/pom.xml
index 0f46775..deeb926 100644
--- a/pinot-spi/pom.xml
+++ b/pinot-spi/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-spi</artifactId>
   <name>Pinot Service Provider Interface</name>
diff --git a/pinot-tools/pom.xml b/pinot-tools/pom.xml
index a8256da..6868a91 100644
--- a/pinot-tools/pom.xml
+++ b/pinot-tools/pom.xml
@@ -25,7 +25,7 @@
   <parent>
     <artifactId>pinot</artifactId>
     <groupId>org.apache.pinot</groupId>
-    <version>0.3.0-SNAPSHOT</version>
+    <version>${revision}${sha1}</version>
   </parent>
   <artifactId>pinot-tools</artifactId>
   <name>Pinot Tools</name>
diff --git a/pom.xml b/pom.xml
index 30a87e8..d4dc2ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -31,7 +31,7 @@
 
   <groupId>org.apache.pinot</groupId>
   <artifactId>pinot</artifactId>
-  <version>0.3.0-SNAPSHOT</version>
+  <version>${revision}${sha1}</version>
   <packaging>pom</packaging>
   <name>Pinot</name>
   <description>A realtime distributed OLAP datastore</description>
@@ -97,8 +97,18 @@
   <!-- Apache project inception year for generating correct NOTICE file for jar bundle. -->
   <inceptionYear>2018</inceptionYear>
 
+  <distributionManagement>
+    <repository>
+      <id>bintray-linkedin-test-repo</id>
+      <name>linkedin-test-repo</name>
+      <url>https://api.bintray.com/maven/linkedin/test-repo/pinot/;publish=1</url>
+    </repository>
+  </distributionManagement>
+
   <properties>
     <pinot.root>${basedir}</pinot.root>
+    <revision>0.3.0</revision>
+    <sha1>-SNAPSHOT</sha1>
     <build.profile.id>dev</build.profile.id>
     <jdk.version>1.8</jdk.version>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -888,6 +898,11 @@
         <version>2.1</version>
       </dependency>
       <dependency>
+        <groupId>org.apache.maven.surefire</groupId>
+        <artifactId>surefire-testng</artifactId>
+        <version>2.19</version>
+      </dependency>
+      <dependency>
         <groupId>org.mockito</groupId>
         <artifactId>mockito-core</artifactId>
         <version>2.10.0</version>
@@ -1481,4 +1496,22 @@
       </plugin>
     </plugins>
   </reporting>
+
+<!--  <repositories>-->
+<!--    <repository>-->
+<!--      <id>central</id>-->
+<!--      <url>http://repo.dev.bloomberg.com/content/groups/public</url>-->
+<!--      <releases>-->
+<!--        <enabled>false</enabled>-->
+<!--      </releases>-->
+<!--    </repository>-->
+<!--  </repositories>-->
+
+<!--  <pluginRepositories>-->
+<!--    <pluginRepository>-->
+<!--      <id>central</id>-->
+<!--      <url>http://repo.dev.bloomberg.com/content/groups/public</url>-->
+<!--      <releases><enabled>false</enabled></releases>-->
+<!--    </pluginRepository>-->
+<!--  </pluginRepositories>-->
 </project>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org