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

vihangk1 pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 580fe2cc654 Hive-27371: Create nightly builds on branch-3 (Junlin 
Zeng, reviewed by Vihang Karajgaonkar)
580fe2cc654 is described below

commit 580fe2cc654423a8d9c6b58261e174c4ed559959
Author: Junlin Zeng <[email protected]>
AuthorDate: Thu May 25 08:36:40 2023 -0700

    Hive-27371: Create nightly builds on branch-3 (Junlin Zeng, reviewed by 
Vihang Karajgaonkar)
---
 Jenkinsfile                          | 15 ++++++++++++
 dev-support/nightly                  | 47 ++++++++++++++++++++++++++++++++++++
 hcatalog/core/pom.xml                |  2 +-
 hcatalog/webhcat/java-client/pom.xml |  2 +-
 hcatalog/webhcat/svr/pom.xml         |  2 +-
 llap-server/pom.xml                  |  2 +-
 metastore/pom.xml                    |  2 +-
 pom.xml                              |  7 ++++++
 ql/pom.xml                           |  2 +-
 service/pom.xml                      |  2 +-
 standalone-metastore/pom.xml         |  7 ++++++
 storage-api/pom.xml                  |  6 +++++
 upgrade-acid/pom.xml                 |  6 +++++
 13 files changed, 95 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5c5c239e4f5..a095a5a7b81 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -214,6 +214,21 @@ jobWrappers {
         }
       }
     }
+
+    branches['nightly-check'] = {
+        executorNode {
+          stage('Prepare') {
+              loadWS();
+          }
+          stage('Build') {
+              sh '''#!/bin/bash
+  set -e
+  dev-support/nightly
+  '''
+              buildHive("install -Dtest=noMatches -Pdist -pl packaging -am")
+          }
+        }
+    }
     parallel branches
   }
 }
diff --git a/dev-support/nightly b/dev-support/nightly
new file mode 100755
index 00000000000..20c83b7e8ad
--- /dev/null
+++ b/dev-support/nightly
@@ -0,0 +1,47 @@
+#!/bin/bash
+# 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.
+
+set -e
+
+DATE="`date +%Y%m%d_%H%M%S`"
+HASH="`git rev-parse --short HEAD`"
+SUFFIX="nightly-$HASH-$DATE"
+
+V="`xmlstarlet sel -t -m /_:project/_:version -v  . pom.xml`"
+NEW_HIVE="${NEW_HIVE:-${V/-*}-$SUFFIX}"
+V="`xmlstarlet sel -t -m /_:project/_:version -v  . storage-api/pom.xml`"
+NEW_SA="${NEW_SA:-${V/-*}-$SUFFIX}"
+V="`xmlstarlet sel -t -m /_:project/_:version -v  . 
standalone-metastore/pom.xml`"
+NEW_MS="${NEW_MS:-${V/-*}-$SUFFIX}"
+
+
+mvn_versions_set="mvn versions:set versions:commit -DgenerateBackupPoms=false"
+
+$mvn_versions_set -B -DnewVersion=$NEW_HIVE
+$mvn_versions_set -B -DnewVersion=$NEW_SA -pl storage-api
+$mvn_versions_set -B -DnewVersion=$NEW_MS -pl standalone-metastore
+$mvn_versions_set -B -DnewVersion=$NEW_MS -pl upgrade-acid
+
+xmlstarlet edit -L -P --update "/_:project/_:properties/_:hive.version" \
+  --value $NEW_HIVE standalone-metastore/pom.xml
+
+xmlstarlet edit -L -P --update "/_:project/_:properties/_:storage-api.version" 
\
+  --value $NEW_SA pom.xml standalone-metastore/pom.xml
+
+xmlstarlet edit -L -P --update 
"/_:project/_:properties/_:standalone-metastore.version" \
+  --value $NEW_MS pom.xml
+
+
diff --git a/hcatalog/core/pom.xml b/hcatalog/core/pom.xml
index 0c454e74300..20ec0461774 100644
--- a/hcatalog/core/pom.xml
+++ b/hcatalog/core/pom.xml
@@ -70,7 +70,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/hcatalog/webhcat/java-client/pom.xml 
b/hcatalog/webhcat/java-client/pom.xml
index 200b6e1fab7..d41f19c2c83 100644
--- a/hcatalog/webhcat/java-client/pom.xml
+++ b/hcatalog/webhcat/java-client/pom.xml
@@ -83,7 +83,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/hcatalog/webhcat/svr/pom.xml b/hcatalog/webhcat/svr/pom.xml
index 09894e0ddb7..5a40e59a26e 100644
--- a/hcatalog/webhcat/svr/pom.xml
+++ b/hcatalog/webhcat/svr/pom.xml
@@ -213,7 +213,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/llap-server/pom.xml b/llap-server/pom.xml
index 6267596cdb8..22957e04478 100644
--- a/llap-server/pom.xml
+++ b/llap-server/pom.xml
@@ -249,7 +249,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/metastore/pom.xml b/metastore/pom.xml
index 76c78e21176..8206754563b 100644
--- a/metastore/pom.xml
+++ b/metastore/pom.xml
@@ -47,7 +47,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
     </dependency>
        <dependency>
                <groupId>javolution</groupId>
diff --git a/pom.xml b/pom.xml
index 3b48d9cf93f..1c289e35398 100644
--- a/pom.xml
+++ b/pom.xml
@@ -66,6 +66,7 @@
   </modules>
 
   <properties>
+    <standalone-metastore.version>3.2.0-SNAPSHOT</standalone-metastore.version>
     <hive.version.shortname>3.2.0</hive.version.shortname>
 
     <!-- Build Properties -->
@@ -112,6 +113,7 @@
     <maven.dependency.plugin.version>2.8</maven.dependency.plugin.version>
     <maven.eclipse.plugin.version>2.9</maven.eclipse.plugin.version>
     <maven.build-helper.plugin.version>1.8</maven.build-helper.plugin.version>
+    <maven.setversion.plugin.version>2.13.0</maven.setversion.plugin.version>
 
     <!-- Library Dependency Versions -->
     <accumulo.version>1.7.3</accumulo.version>
@@ -1057,6 +1059,11 @@
           <artifactId>maven-checkstyle-plugin</artifactId>
           <version>${maven.checkstyle.plugin.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>versions-maven-plugin</artifactId>
+          <version>${maven.setversion.plugin.version}</version>
+        </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-enforcer-plugin</artifactId>
diff --git a/ql/pom.xml b/ql/pom.xml
index d32ec1e4911..1ed49bcde76 100644
--- a/ql/pom.xml
+++ b/ql/pom.xml
@@ -469,7 +469,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/service/pom.xml b/service/pom.xml
index b60edd0e1cc..e44d1244e52 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -231,7 +231,7 @@
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-standalone-metastore</artifactId>
-      <version>${project.version}</version>
+      <version>${standalone-metastore.version}</version>
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
diff --git a/standalone-metastore/pom.xml b/standalone-metastore/pom.xml
index fc5888309b1..e91ef5e8bc3 100644
--- a/standalone-metastore/pom.xml
+++ b/standalone-metastore/pom.xml
@@ -30,6 +30,7 @@
   <name>Hive Standalone Metastore</name>
 
   <properties>
+    <hive.version>3.2.0-SNAPSHOT</hive.version>
     <hive.version.shortname>3.2.0</hive.version.shortname>
 
     <!-- Build properties -->
@@ -40,6 +41,7 @@
     <maven.repo.local>${settings.localRepository}</maven.repo.local>
     <maven.assembly.plugin.version>2.3</maven.assembly.plugin.version>
     <maven.exec.plugin.version>1.6.0</maven.exec.plugin.version>
+    <maven.setversion.plugin.version>2.13.0</maven.setversion.plugin.version>
 
     <!-- Test Properties -->
     <log4j.conf.dir>${project.basedir}/src/test/resources</log4j.conf.dir>
@@ -555,6 +557,11 @@
           <artifactId>maven-checkstyle-plugin</artifactId>
           <version>${maven.checkstyle.plugin.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>versions-maven-plugin</artifactId>
+          <version>${maven.setversion.plugin.version}</version>
+        </plugin>
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>exec-maven-plugin</artifactId>
diff --git a/storage-api/pom.xml b/storage-api/pom.xml
index a40feff575c..95612ab8668 100644
--- a/storage-api/pom.xml
+++ b/storage-api/pom.xml
@@ -38,6 +38,7 @@
     <slf4j.version>1.7.10</slf4j.version>
     <maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
     <checkstyle.conf.dir>${basedir}/checkstyle/</checkstyle.conf.dir>
+    <maven.setversion.plugin.version>2.13.0</maven.setversion.plugin.version>
   </properties>
 
   <dependencies>
@@ -141,6 +142,11 @@
           <artifactId>maven-checkstyle-plugin</artifactId>
           <version>${maven.checkstyle.plugin.version}</version>
         </plugin>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>versions-maven-plugin</artifactId>
+          <version>${maven.setversion.plugin.version}</version>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
diff --git a/upgrade-acid/pom.xml b/upgrade-acid/pom.xml
index 131f86fc1f7..21d6e4c43e4 100644
--- a/upgrade-acid/pom.xml
+++ b/upgrade-acid/pom.xml
@@ -47,6 +47,7 @@
         <checkstyle.conf.dir>${basedir}/checkstyle/</checkstyle.conf.dir>
         <maven.checkstyle.plugin.version>2.17</maven.checkstyle.plugin.version>
         <maven.surefire.version>2.20.1</maven.surefire.version>
+        
<maven.setversion.plugin.version>2.13.0</maven.setversion.plugin.version>
 
         <!-- Test Properties -->
         <test.conf.dir>${project.build.directory}/testconf</test.conf.dir>
@@ -169,6 +170,11 @@ java.io.IOException: Cannot initialize Cluster. Please 
check your configuration
                     <artifactId>exec-maven-plugin</artifactId>
                     <version>${maven.exec.plugin.version}</version>
                 </plugin>
+                <plugin>
+                  <groupId>org.codehaus.mojo</groupId>
+                  <artifactId>versions-maven-plugin</artifactId>
+                  <version>${maven.setversion.plugin.version}</version>
+                </plugin>
             </plugins>
         </pluginManagement>
         <plugins>

Reply via email to