Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 251923

Summary: support SVN
Product: z_Archived Reporter: Kim Moir <kim.moir>
Component: Dash AthenaAssignee: Common Build Inbox <dash.commonbuilder-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: milesparker, nboldt
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 297788    

Description Kim Moir CLA 2008-10-23 16:57:55 EDT
support SVN in common builder.  Need support to fetch SVN artifacts from the repository.
Comment 1 Nick Boldt CLA 2008-10-24 09:43:40 EDT
See also CQ 2779: https://dev.eclipse.org/ipzilla/show_bug.cgi?id=2779 (svn-pde-plugin from sourceforge, MPL 1.1 license)
Comment 2 Nick Boldt CLA 2008-10-24 13:12:55 EDT
CQ withdrawn due to pedigree issues. But we can still put svn-pde-plugin on the server and USE it, but not DISTRIBUTE it or put it in CVS.

Comment 3 Nick Boldt CLA 2008-11-03 15:26:10 EST
We can't put it in CVS, but we CAN put it on build.eclipse.org for build-time use. I've tweaked the setup/localhost.setup.sh script so that it will download the zip from a sourceforge mirror, unpack it into releng.basebuilder, and clean up after itself. 

Sample SVN map file syntax:

feature@org.jboss.tools.seam.feature=SVN,anonymous,,%svnTag%,%svnURL%,,seam/features/org.jboss.tools.seam.feature
plugin@org.jboss.tools.seam.core=SVN,anonymous,,%svnTag%,%svnURL%,,seam/plugins/org.jboss.tools.seam.core

sample svnURL:

http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.bpmn/trunk/samples/bpmn_samples/

Comment 4 Nick Boldt CLA 2008-11-04 00:16:57 EST
Better (working!) map file example:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.linuxtools.releng/maps/linuxtools.map?revision=1.12&root=Technology_Project&view=markup

See also:

http://sourceforge.net/docman/display_doc.php?docid=37478&group_id=181297

--

Next step is to support having the .releng project in SVN too -- start.sh needs to be able to get the .releng project from a SVN repo, not just CVS.
Comment 5 Nick Boldt CLA 2008-11-05 19:41:12 EST
Done - can now source .releng project from somewhere in CVS or SVN. As long as the svn URL contains "svn" in it, start.sh will interpret it as an SVN path instead of CVS. Could get fancier, but for eclipse.org projects this should be sufficient.

Sample execution to compare syntax:

# get releng from CVS
cd /opt/public/cbi/build/org.eclipse.dash.common.releng_HEAD/tools/scripts/; ./start.sh \
  -projectid technology.linuxtools -version 0.7.0 \
  -projRelengRoot ':pserver:anonymous@dev.eclipse.org:/cvsroot/technology' \
  -projRelengPath 'org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.linuxtools.releng' \
  -basebuilderBranch R35_M2 -javaHome /usr/lib/jvm/java \
  -URL http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz \
  -URL http://download.eclipse.org/tools/cdt/releases/ganymede/dist/cdt-master-5.0.0.zip \
  -antTarget run -buildType N 2>&1 | tee /tmp/buildlog_linuxtools_`date +%H%M%S`.txt
  
# get releng from SVN
cd /opt/public/cbi/build/org.eclipse.dash.common.releng_HEAD/tools/scripts/; ./start.sh \
  -projectid technology.linuxtools -version 0.7.0 \
  -projRelengRoot 'http://dev.eclipse.org/svnroot/technology/org.eclipse.linuxtools/releng/trunk' \
  -projRelengPath 'org.eclipse.linuxtools.releng' \
  -basebuilderBranch R35_M2 -javaHome /usr/lib/jvm/java \
  -URL http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz \
  -URL http://download.eclipse.org/tools/cdt/releases/ganymede/dist/cdt-master-5.0.0.zip \
  -antTarget run -buildType N 2>&1 | tee /tmp/buildlog_linuxtools_`date +%H%M%S`.txt