Re: Hudson and setupWorkspace.sh
Re: Hudson and setupWorkspace.sh
- Subject: Re: Hudson and setupWorkspace.sh
- From: "Mr. Frank Cobia" <email@hidden>
- Date: Wed, 14 Oct 2009 11:56:05 -0400
Sorry, I hit reply instead of reply all on a previous email.
1) The setupWorkspace.sh script seems to be looking for the .classpath file in the wrong place.
I setup the subversion URL as https://svnserver/path/MyProject. So when Hudson check out from subversion the .classpath is placed in $WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking for $WORKSPACE/.classpath. What am I doing wrong?
In the job setup, under Subversion, put a period (.) in the "Local module directory (optional)" field. It probably has "MyProject" in there now.
Putting ".", instead of leaving it blank, fixed this and #2. 2) The setupWorkspace.sh prints the following error even though I can go in by hand after the build and that directory does exit: rm: /Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No such file or directory
This is the same problem. it's looking in .../workspace/Root/System, because you have the Local module directory as your project name, that directory actually exists in /worspace/MyProject/Root/System. 3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in /Library/Frameworks?
Mike's latest workspaceSetup.sh will automatically look for Hudson projects with the same name as the frameworks in your .classpath file - freaking AWESOME, BTW. If it finds them, it will use the last successful build of that hudson job.
This is actually broken for me because I can not archive the build (see #4). I looked in the script and it is looking under "lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two problems for me. First I can not figure out any pattern under the archive option that will find my framework. Second, my build only produces a MyProject.framework and not MyProject.framework.tar.gz.
Anyone help with this? 4) I can not get Hudson to "Archive the Artifacts" for framework builds when set to $WORKSPACE/MyProject/dist/*.framework. The configuration screen tells me that $WORKSPACE/MyProject/dist does exist but the build throws an error saying it can not find /Developer/Hudson/Home/jobs/MyProject/workspace/MyProject/dist/*.framework.
Hmmm.... not sure on this one, but once you change the Local module directory (see #1) then maybe that will fix this too.
Thanks, Frank |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden