On Mon, 14 Mar 2005, Sean Schofield wrote:
James,
Thanks for the additional info (and the *ton* of hardwork on the struts maven stuff ;-)
One question about scp. I've never done it via a script before (only from command line.) How does it handle passwords?
You need to create a key pair, put a copy of the public one up on the target server, and then use ssh-agent to supply the key to scp. There's some blurb related to this here:
http://www.apache.org/~acoliver/community/howto/cvs-ssh/howto-cvs-ssh.html http://httpd.apache.org/dev/devnotes.html
-- Martin Cooper
sean
On Mon, 14 Mar 2005 17:22:22 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:I don't have anything to clean out the old builds yet. I have something similar to what Craig sent you, but it isn't quite what I want.
Here is my nightly.sh
-------------------------------------------- #!/bin/sh # # This bash shell script executes the necessary commands to # build a nightly distribution and publish it to the Apache hardware. #
TODAY=`date +%Y-%m-%d`
mkdir $TODAY cd ../ svn up > build/$TODAY/svn-update.log cd build maven nightly > $TODAY/maven-build.log
scp -r $TODAY cvs.apache.org:/www/cvs.apache.org/builds/struts/maven/dist/
--------------------------------------------
If you are familiar with the Struts layout and how we use "current" (svn:externals), then take a look at current/build/maven.xml and you'll be able to put the peices together for how I do this.
Basically, I execute the above script from current/build/.
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Sean Schofield" <[EMAIL PROTECTED]> To: "MyFaces Development" <[email protected]> Sent: Monday, March 14, 2005 4:55 PM Subject: Re: Nightly builds
That was the plan. Do you mind if I take a look at your script (your chron script, not your maven one.)? Also, how do you handle the file "rotation" issue?
sean
On Mon, 14 Mar 2005 16:47:56 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:Why don't you just publish the nightlies to a known location
(for example)
/www/incubator.apache.org/myfaces/nightlies
I am currently building a set of nightlies for Struts (via Maven instead of Ant). My script does a refresh from svn, then build, then scp (which pushes them out to):
/www/cvs.apache.org/builds/struts/maven/dist/
http://svn.apache.org/builds/struts/maven/dist/
-- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx
----- Original Message ----- From: "Sean Schofield" <[EMAIL PROTECTED]> To: "MyFaces Development" <[email protected]> Sent: Monday, March 14, 2005 3:50 PM Subject: Nightly builds
Martin (Cooper),
Have we made any progress on finding a build machine? As we approach release time I think it would be good for us to have nightlies. The Gump folks were unresponsive to my inquiries into using their machine.
I'm going to suggest that we use Martin C's server to perform the nightly builds in the meantime. This way we can test the release script, etc. and everyone can be working off the same nightly build when testing before release time.
My proposal is to host the bootstrap.xml build on Martin's server. (I know this is not an ASF machine but we use his server for other things already.) We can push the nightlies up to CVS using scp (same as how Struts does it). We can then alert the infra people and have them tweak their chron job (if necessary) that removes the files older than five days.
Martin M., can you test the latest bootstrap.xml I sent to the list a few days ago? I just want to make sure that it works on another machine.
Regards, sean
