Repository: impala Updated Branches: refs/heads/2.x 07c704aef -> 7f44a99c8
IMPALA-7443: Fix intermittent GVO failures due to stale Maven cache When switching to a new Maven repository, such as switching to a new CDH_BUILD_NUMBER, Maven does not automatically pick up the new repository. The patch forces Maven to run with -U on Jenkins to force updating its local repository. The patch also puts some Jenkins jobs into scripts in $IMPALA_HOME/bin/jenkins to make updating Jenkins jobs easier. Change-Id: I935fe911f74306e4dde38945868943b4a7579ae2 Reviewed-on: http://gerrit.cloudera.org:8080/11222 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> Reviewed-on: http://gerrit.cloudera.org:8080/11366 Reviewed-by: Philip Zeyliger <[email protected]> Tested-by: Fredy Wijaya <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/impala/repo Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/4c2f35f4 Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/4c2f35f4 Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/4c2f35f4 Branch: refs/heads/2.x Commit: 4c2f35f4056ece8febb881226780f510aee22490 Parents: 07c704a Author: Fredy Wijaya <[email protected]> Authored: Tue Aug 14 14:59:46 2018 -0700 Committer: Fredy Wijaya <[email protected]> Committed: Thu Aug 30 22:37:29 2018 +0000 ---------------------------------------------------------------------- bin/jenkins/all-tests.sh | 29 +++++++++++++++++++++++++ bin/jenkins/build-all-flag-combinations.sh | 2 ++ bin/jenkins/build-only.sh | 28 ++++++++++++++++++++++++ 3 files changed, 59 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/impala/blob/4c2f35f4/bin/jenkins/all-tests.sh ---------------------------------------------------------------------- diff --git a/bin/jenkins/all-tests.sh b/bin/jenkins/all-tests.sh new file mode 100644 index 0000000..7917358 --- /dev/null +++ b/bin/jenkins/all-tests.sh @@ -0,0 +1,29 @@ +#!/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. + +# Run all Impala tests. + +set -euo pipefail +trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR + +cd "${IMPALA_HOME}" + +export IMPALA_MAVEN_OPTIONS="-U" + +source bin/bootstrap_development.sh +bin/run-all-tests.sh http://git-wip-us.apache.org/repos/asf/impala/blob/4c2f35f4/bin/jenkins/build-all-flag-combinations.sh ---------------------------------------------------------------------- diff --git a/bin/jenkins/build-all-flag-combinations.sh b/bin/jenkins/build-all-flag-combinations.sh index c0e0f6a..ec5b1c1 100755 --- a/bin/jenkins/build-all-flag-combinations.sh +++ b/bin/jenkins/build-all-flag-combinations.sh @@ -27,6 +27,8 @@ set -euo pipefail trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR +export IMPALA_MAVEN_OPTIONS="-U" + . bin/impala-config.sh # These are configurations for buildall: http://git-wip-us.apache.org/repos/asf/impala/blob/4c2f35f4/bin/jenkins/build-only.sh ---------------------------------------------------------------------- diff --git a/bin/jenkins/build-only.sh b/bin/jenkins/build-only.sh new file mode 100644 index 0000000..d14ad6e --- /dev/null +++ b/bin/jenkins/build-only.sh @@ -0,0 +1,28 @@ +#!/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. + +# Only run an Impala build. + +set -euo pipefail +trap 'echo Error in $0 at line $LINENO: $(cd "'$PWD'" && awk "NR == $LINENO" $0)' ERR + +cd "${IMPALA_HOME}" + +export IMPALA_MAVEN_OPTIONS="-U" + +bin/bootstrap_build.sh
