cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r446460 - /incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
Date Fri, 15 Sep 2006 02:04:59 GMT
Author: aadamchik
Date: Thu Sep 14 19:04:58 2006
New Revision: 446460

URL: http://svn.apache.org/viewvc?view=rev&rev=446460
Log:
adding snapshot deploy step to the nightly build

Modified:
    incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl

Modified: incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl?view=diff&rev=446460&r1=446459&r2=446460
==============================================================================
--- incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl (original)
+++ incubator/cayenne/main/trunk/other/cayenne-build-tools/src/main/bin/nightly-build.pl Thu
Sep 14 19:04:58 2006
@@ -93,10 +93,23 @@
 	my $gz_file = $gz_files[0];
 	$status = run_command("scp $gz_files[0] $upload_dir/");
 	die_with_email("Can't upload release, return status: $status\n") if $status;
+
+	# Publish Maven snapshots - have to do it from module dirs - doesn't work from parent
+	publish_snapshot("$cayenne_src/core/cayenne-jdk1.4");	
+	publish_snapshot("$cayenne_src/core/cayenne-jdk1.5");	
+	publish_snapshot("$cayenne_src/core/cayenne-jpa");	
+	publish_snapshot("$cayenne_src/core/cayenne-jpa-agent");	
 }
 
 print_line("====== SUCCESS\n");
 success_email("Build Succeeded.");
+
+sub publish_snapshot() {
+	my $dir = shift;
+	chdir "$dir" or die_with_email("Can't change to $dir: $!\n");
+	my $status = run_command("mvn deploy");
+	die_with_email("Deploy of $dir failed, return status: $status\n") if $status;
+}
 
 sub get_source() {
 	if($opt_n) {



Mime
View raw message