Repository: buildr
Updated Branches:
  refs/heads/master fdb80e8eb -> 74e4509a0


Stage using the dist.apache.org SVN repository


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/0c2ddc34
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/0c2ddc34
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/0c2ddc34

Branch: refs/heads/master
Commit: 0c2ddc34bfca0766d024eebd69ac7e8f2e04dc55
Parents: 0916a14
Author: Antoine Toulme <anto...@lunar-ocean.com>
Authored: Fri Sep 16 22:59:12 2016 -0700
Committer: Antoine Toulme <anto...@lunar-ocean.com>
Committed: Fri Sep 16 22:59:12 2016 -0700

----------------------------------------------------------------------
 rakelib/stage.rake | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/0c2ddc34/rakelib/stage.rake
----------------------------------------------------------------------
diff --git a/rakelib/stage.rake b/rakelib/stage.rake
index 043417b..43c9a1a 100644
--- a/rakelib/stage.rake
+++ b/rakelib/stage.rake
@@ -85,13 +85,6 @@ task 'prepare' do |task, args|
     sh 'prince --version'
     puts '[X] We have prince available'
   end.call
-  
-  # Need lftp to push the stage website to home.apache.org
-  lambda do
-    puts 'Checking that lftp is available...'
-    sh 'lftp --version'
-    puts '[X] We have lftp available'
-  end.call
 
   raise "Can not run stage process under jruby" if RUBY_PLATFORM[/java/]
   raise "Can not run staging process under older rubies" unless RUBY_VERSION 
>= '1.9'
@@ -182,10 +175,13 @@ p>. ("Release signing keys":#{official}/KEYS)
   end.call
 
 
-  # Move everything over to home.apache.org so we can vote on it.
+  # Move everything over to https://dist.apache.org/repos/dist/dev/buildr so 
we can vote on it.
   lambda do
     puts "Uploading _staged directory ..."
-    sh "lftp -e \"mirror -R _staged public_html/buildr/#{spec.version}; bye\" 
-u #{user} sftp://home.apache.org"; 
+    sh "svn mkdir 
https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}";
+    sh "svn checkout 
https://dist.apache.org/repos/dist/dev/buildr/#{spec.version} ."
+    sh "svn add *"
+     sh "svn commit -m 'Uploading Buildr RC #{spec.version}'"
     puts "[X] Uploaded _staged directory"
   end.call
 
@@ -194,7 +190,7 @@ p>. ("Release signing keys":#{official}/KEYS)
   # email for you and vote on it.
   lambda do
     # Need to know who you are on Apache, local user may be different (see 
.ssh/config).
-    base_url = "http://home.apache.org/~#{user}/buildr/#{spec.version}";
+    base_url = "https://dist.apache.org/repos/dist/dev/buildr/#{spec.version}";
     # Need changes for this release only.
     changelog = 
File.read('CHANGELOG').scan(/(^(\d+\.\d+(?:\.\d+)?)\s+\(\d{4}-\d{2}-\d{2}\)\s*((:?^[^\n]+\n)*))/)
     changes = changelog[0][2]

Reply via email to