lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r891404 - /lucene/java/nightly/hudson.sh
Date Wed, 16 Dec 2009 19:46:37 GMT
Author: mikemccand
Date: Wed Dec 16 19:46:37 2009
New Revision: 891404

URL: http://svn.apache.org/viewvc?rev=891404&view=rev
Log:
checking in hudson's shell script commands, only as reference

Added:
    lucene/java/nightly/hudson.sh   (with props)

Added: lucene/java/nightly/hudson.sh
URL: http://svn.apache.org/viewvc/lucene/java/nightly/hudson.sh?rev=891404&view=auto
==============================================================================
--- lucene/java/nightly/hudson.sh (added)
+++ lucene/java/nightly/hudson.sh Wed Dec 16 19:46:37 2009
@@ -0,0 +1,70 @@
+
+# NOTE -- this is the shell script that hudson runs for nightly build
+# -- copying it here (from hudson's admin UI) only for reference
+
+set -x
+
+export FORREST_HOME=/export/home/nigel/tools/forrest/latest
+
+ANT_HOME=/export/home/hudson/tools/ant/latest
+
+ARTIFACTS=$WORKSPACE/artifacts
+MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
+TRUNK=$WORKSPACE/trunk
+mkdir -p $ARTIFACTS
+mkdir -p $MAVEN_ARTIFACTS
+cd $TRUNK
+
+echo "Workspace: $WORKSPACE"
+
+# run build
+#$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
+#  -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
+# release it
+#cp dist/*.tar.gz $ARTIFACTS
+
+#Package the Source
+$ANT_HOME/bin/ant -Dversion=$BUILD_ID \
+   -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+   -Dsvn.exe=/opt/subversion-current/bin/svn \
+   clean package-tgz-src
+# release it
+cp dist/*-src.tar.gz $ARTIFACTS
+
+#Generate the Maven snapshot
+#Update the Version # when doing a release
+$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
+  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  -Dversion=3.1-SNAPSHOT generate-maven-artifacts
+#copy the artifacts to the side so the cron job can publish them
+echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
+cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
+echo "Done Copying Maven Artifacts"
+
+# run build
+$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
+  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
+# release it
+cp dist/*.tar.gz $ARTIFACTS
+
+$ANT_HOME/bin/ant -Dversion=$BUILD_ID \
+  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  javadocs
+
+#Rerun nightly with clover on
+$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
+  -lib /export/home/hudson/tools/clover/clover2latest \
+  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  -Dversion=$BUILD_ID -Drun.clover=true clean test
+
+#generate the clover reports
+$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
+  -lib /export/home/hudson/tools/clover/clover2latest \
+  -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
+  -Dsvn.exe=/opt/subversion-current/bin/svn \
+  -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports

Propchange: lucene/java/nightly/hudson.sh
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message