ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [ambari] branch trunk updated: [AMBARI-22770] Bring jenkins job build script under version control (#98)
Date Fri, 12 Jan 2018 18:21:57 GMT
This is an automated email from the ASF dual-hosted git repository.

vivekratnavel pushed a commit to branch trunk
in repository

The following commit(s) were added to refs/heads/trunk by this push:
     new c1320ab  [AMBARI-22770] Bring jenkins job build script under version control (#98)
c1320ab is described below

commit c1320ab9db69b4bfeeaf2892b6c716e793cba05a
Author: Vivek Ratnavel Subramanian <>
AuthorDate: Fri Jan 12 10:21:55 2018 -0800

    [AMBARI-22770] Bring jenkins job build script under version control (#98)
    [AMBARI-22770] Bring jenkins job build script under version control
 dev-support/ | 58 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/dev-support/ b/dev-support/
new file mode 100755
index 0000000..d75edee
--- /dev/null
+++ b/dev-support/
@@ -0,0 +1,58 @@
+#!/usr/bin/env bash
+#   Licensed 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
+#   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.
+# Clean up files from previous build to make sure there are no artifacts that would trigger
rat failure.
+pushd .
+git clean -xdf
+# We stash node.js installation into this weird place
+# because on one hand we want it to be somewhere inside
+# the current workspace and on the other hand we don't
+# want RAT to be ran on files that comprise it. The following
+# location is excluded from RAT by default
+[ -d "$REPO_NAME"  ] && exit 0
+rm -rf $REPO_NAME
+mkdir -p $REPO_NAME.tmp
+pushd $REPO_NAME.tmp
+  curl --retry 3 --retry-delay 5 -k
| tar xzvf -
+  mv node-v4.5.0-linux-x64/* .
+  rmdir node-v4.5.0-linux-x64
+export PATH=`pwd`/$REPO_NAME/bin:$PATH
+npm install -g brunch@1.7.20
+export _JAVA_OPTIONS="-Xmx2048m -Djava.awt.headless=true"
+export JAVA_HOME=/home/jenkins/tools/java/latest1.8
+export MAVEN_HOME=/home/jenkins/tools/maven/latest
+echo "Checking Hudson Java"
+ls -l /home/hudson/tools/java
+echo "Checking Jenkins Java"
+ls -l /home/jenkins/tools/java
+which java
+java -version
+python -V
+uname -a
+$MAVEN_HOME/bin/mvn -fae clean install

To stop receiving notification emails like this one, please contact
['"" <>'].

View raw message