kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [1/2] incubator-kudu git commit: build: allow passing $MVN_FLAGS in jenkins build
Date Fri, 22 Jan 2016 21:09:50 GMT
Repository: incubator-kudu
Updated Branches:
  refs/heads/master e503538af -> 77d101b74


build: allow passing $MVN_FLAGS in jenkins build

This passes through a flags variable to the maven invocation. This is
necessary in order to use a custom workspace and prevent issues if a Jenkins
slave runs multiple Java builds concurrently.

Change-Id: Ieadae80f91928d51eea45be514fe98aa87647a21
Reviewed-on: http://gerrit.cloudera.org:8080/1876
Reviewed-by: Jean-Daniel Cryans
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/e2d60150
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/e2d60150
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/e2d60150

Branch: refs/heads/master
Commit: e2d60150da8c34718e2997d82b7de593e8a95fe9
Parents: e503538
Author: Todd Lipcon <todd@apache.org>
Authored: Fri Jan 22 12:14:59 2016 -0800
Committer: Todd Lipcon <todd@apache.org>
Committed: Fri Jan 22 21:05:33 2016 +0000

----------------------------------------------------------------------
 build-support/jenkins/build-and-test.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/e2d60150/build-support/jenkins/build-and-test.sh
----------------------------------------------------------------------
diff --git a/build-support/jenkins/build-and-test.sh b/build-support/jenkins/build-and-test.sh
index 9e7ce15..a144e89 100755
--- a/build-support/jenkins/build-and-test.sh
+++ b/build-support/jenkins/build-and-test.sh
@@ -62,6 +62,11 @@
 #
 #   BUILD_PYTHON       Default: 1
 #     Build and test the Python wrapper of the client API.
+#
+#   MVN_FLAGS          Default: ""
+#     Extra flags which are passed to 'mvn' when building and running Java
+#     tests. This can be useful, for example, to choose a different maven
+#     repository location.
 
 # If a commit messages contains a line that says 'DONT_BUILD', exit
 # immediately.
@@ -289,7 +294,7 @@ if [ "$BUILD_JAVA" == "1" ]; then
   if [ "$VALIDATE_CSD" == "1" ]; then
     VALIDATE_CSD_FLAG="-PvalidateCSD"
   fi
-  mvn -PbuildCSD \
+  mvn $MVN_FLAGS -PbuildCSD \
       $VALIDATE_CSD_FLAG \
       -Dsurefire.rerunFailingTestsCount=3 \
       -Dfailsafe.rerunFailingTestsCount=3 \


Mime
View raw message