hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r375354 - in /lucene/hadoop/nightly: nightly.cron nightly.properties nightly.sh
Date Mon, 06 Feb 2006 20:22:49 GMT
Author: cutting
Date: Mon Feb  6 12:22:46 2006
New Revision: 375354

URL: http://svn.apache.org/viewcvs?rev=375354&view=rev
Log:
First working version of Hadoop nightly scripts.

Added:
    lucene/hadoop/nightly/nightly.cron
    lucene/hadoop/nightly/nightly.properties
    lucene/hadoop/nightly/nightly.sh   (with props)

Added: lucene/hadoop/nightly/nightly.cron
URL: http://svn.apache.org/viewcvs/lucene/hadoop/nightly/nightly.cron?rev=375354&view=auto
==============================================================================
--- lucene/hadoop/nightly/nightly.cron (added)
+++ lucene/hadoop/nightly/nightly.cron Mon Feb  6 12:22:46 2006
@@ -0,0 +1,4 @@
+# nightly crontab file
+# install with: crontab nightly.cron
+# run seven minutes after midnight, every day
+7 0 * * *       $HOME/nutch-nightly/nightly.sh > $HOME/nutch-nightly/nightly.log 2>&1

Added: lucene/hadoop/nightly/nightly.properties
URL: http://svn.apache.org/viewcvs/lucene/hadoop/nightly/nightly.properties?rev=375354&view=auto
==============================================================================
--- lucene/hadoop/nightly/nightly.properties (added)
+++ lucene/hadoop/nightly/nightly.properties Mon Feb  6 12:22:46 2006
@@ -0,0 +1,5 @@
+MailLogger.mailhost = localhost
+MailLogger.from = hadoop-dev@lucene.apache.org
+MailLogger.failure.to = hadoop-dev@lucene.apache.org
+MailLogger.failure.subject = Hadoop nightly build failure
+MailLogger.success.notify = false

Added: lucene/hadoop/nightly/nightly.sh
URL: http://svn.apache.org/viewcvs/lucene/hadoop/nightly/nightly.sh?rev=375354&view=auto
==============================================================================
--- lucene/hadoop/nightly/nightly.sh (added)
+++ lucene/hadoop/nightly/nightly.sh Mon Feb  6 12:22:46 2006
@@ -0,0 +1,33 @@
+#!/bin/bash -vx
+
+export JAVA_HOME=/usr/j2se
+
+TRUNK=http://svn.apache.org/repos/asf/lucene/hadoop/trunk
+
+REL_SERVER=people.apache.org
+REL_DIR=/www/cvs.apache.org/dist/lucene/hadoop/nightly
+DOCS_DIR=/www/lucene.apache.org/hadoop/docs
+
+# create an empty build directory
+rm -rf /tmp/hadoop-nightly
+cd /tmp
+
+# export sources into it
+$HOME/bin/svn export $TRUNK hadoop-nightly
+
+# run build
+cd hadoop-nightly
+$HOME/bin/ant \
+ -propertyfile $HOME/hadoop-nightly/nightly.properties \
+ -logger org.apache.tools.ant.listener.MailLogger \
+ -Dversion=nightly nightly
+
+# release it
+scp build/*.tar.gz $REL_SERVER:$REL_DIR/hadoop-`/bin/date +%F`.tar.gz
+
+# copy javadocs to $REL_SERVER too
+ssh $REL_SERVER rm -rf $DOCS_DIR/api
+scp -r build/docs/api $REL_SERVER:$DOCS_DIR
+
+# remove all but five newest builds
+ssh $REL_SERVER rm `ssh $REL_SERVER find $REL_DIR -type f | sort -r | tail +5`

Propchange: lucene/hadoop/nightly/nightly.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message