commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r477575 - in /jakarta/commons/proper/commons-nightly/trunk: commons_nightly.sh vmbuild.conf
Date Tue, 21 Nov 2006 08:29:55 GMT
Author: bayard
Date: Tue Nov 21 00:29:54 2006
New Revision: 477575

URL: http://svn.apache.org/viewvc?view=rev&rev=477575
Log:
Added in local deploys (have to make sure they get cleaned in a crontab), and generation of
rat output for both binary and source packages. It's too late to make tonight's deploy, so
will test a bit tomorrow and see if it works

Modified:
    jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
    jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf

Modified: jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh?view=diff&rev=477575&r1=477574&r2=477575
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh (original)
+++ jakarta/commons/proper/commons-nightly/trunk/commons_nightly.sh Tue Nov 21 00:29:54 2006
@@ -125,19 +125,43 @@
     $deploy_user@$deploy_host:$deploy_location/commons-$component
   fi
 
+  # deploy source/binary package locally
+  mkdir -p $local_deploy_location/commons-$component
+  cp target/distributions/commons-$component*.gz $local_deploy_location/commons-$component
+  cp target/distributions/commons-$component*.zip $local_deploy_location/commons-$component
+  cp target/distributions/commons-$component*.md5 $local_deploy_location/commons-$component
+
+  # generate rat reports
+  mkdir -p $nightly_reports/commons-$component
+  mkdir rat
+  mv target/distributions/commons-$component*src.tar.gz rat
+  cd rat
+  tar -zxf commons-$component*src.tar.gz 
+  java -jar $ARAT_JAR . > $nightly_reports/commons-$component/src-rat.txt
+  cd ..
+  rm -r rat
+  mkdir rat
+  mv target/distributions/commons-$component*.tar.gz rat
+  cd rat
+  tar -zxf commons-$component*.tar.gz 
+  java -jar $ARAT_JAR . > $nightly_reports/commons-$component/bin-rat.txt
+  cd ..
+  rm -r rat
+  
+
     # Deploy dated jar manually to maven 1 snapshot repo
     if [ -e "target/commons-$component-$time_stamp.jar" ] # build succeeded
     then 
+      # Create checksum file
+      md5sum -b target/commons-$component-$time_stamp.jar > \
+      target/commons-$component-$time_stamp.jar.md5
+
      if [ $MAVEN_DEPLOY ]
      then
       echo "Deploying commons-$component SNAPSHOT jar to m1 snapshot repo"
       # Create component directory in the repo if it does not exist
       ssh $maven_snapshot_user@$maven_snapshot_host mkdir -p ${maven_snapshot_directory}/commons-$component/jars
       
-      # Create checksum file
-      md5sum -b target/commons-$component-$time_stamp.jar > \
-      target/commons-$component-$time_stamp.jar.md5
-
       # Upload files
       scp target/commons-$component-$time_stamp.jar \
       $maven_snapshot_user@$maven_snapshot_host:${maven_snapshot_directory}/commons-$component/jars
@@ -153,6 +177,16 @@
       # Make files group writable 
       ssh $maven_snapshot_user@$maven_snapshot_host chmod -R g+w ${maven_snapshot_directory}/commons-$component
      fi
+
+     # deploy locally
+     deploy_dir="${local_maven_directory}/commons-$component/jars"
+     mkdir -p $deploy_dir
+     cp target/commons-$component-$time_stamp.jar $deploy_dir
+     cp target/commons-$component-$time_stamp.jar.md5 $deploy_dir
+     rm $deploy_dir/commons-$component-SNAPSHOT.jar*
+     ln -s $deploy_dir/commons-$component-$time_stamp.jar $deploy_dir/commons-$component-SNAPSHOT.jar
+     ln -s $deploy_dir/commons-$component-$time_stamp.jar.md5 $deploy_dir/commons-$component-SNAPSHOT.jar.md5
+
     else # build failed - add to failure list and capture unit test logs
       failed_builds[${#failed_builds[@]}]=$component
       echo "Test Reports" >> $log_location/$component.log

Modified: jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf?view=diff&rev=477575&r1=477574&r2=477575
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf (original)
+++ jakarta/commons/proper/commons-nightly/trunk/vmbuild.conf Tue Nov 21 00:29:54 2006
@@ -17,6 +17,7 @@
 local_maven_directory='/home/commons/public_html/nightly/maven'
 notification_email='commons-dev@jakarta.apache.org'
 javadoc_location="/home/commons/public_html/nightly/nightly_javadoc"
+nightly_reports="/home/commons/public_html/nightly/nightly_reports"
 
 # deprecated
 log_url='http://people.apache.org/~psteitz/commons-nightlies'



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message