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

Bug 341639

Summary: Provide p2 repository for nightly builds on Hudson
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-relengAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Vivian Kong <vivkong>
Severity: normal    
Priority: P3 CC: aegges, cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch cdtdoug: iplog-

Description Andrew Gvozdev CLA 2011-04-01 11:05:57 EDT
The installation of nightly or weekly builds for CDT is more cumbersome than it should be. We create p2 repository during build, why not make that available online?
Comment 1 Andrew Gvozdev CLA 2011-04-04 10:16:59 EDT
I created update site in Hudson build command:
https://hudson.eclipse.org/hudson/job/cdt-nightly/lastSuccessfulBuild/artifact/update-site/
It will unzip cdt-master to Workspace/update-site/. Vivian, let me know if that location is any problem.

Also, I think that it would be better to create a target for that in build.xml rather than put that command in Hudson script. I'll propose a patch soon.
Comment 2 Vivian Kong CLA 2011-04-04 11:08:31 EDT
A new target to unzip the master build zip is a good idea.  Thanks Andrew!
Comment 3 Andrew Gvozdev CLA 2011-04-04 12:14:25 EDT
Created attachment 192477 [details]
patch

Here is a patch introducing target "update-site". The code is from my head, I haven't tested it. I intend to commit and test it on Hudson.
Comment 4 CDT Genie CLA 2011-04-04 14:23:05 EDT
*** cdt cvs genie on behalf of agvozdev ***
bug 341639: Provide p2 repository for nightly builds on Hudson

[*] build.xml 1.247 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.releng/build.xml?root=Tools_Project&r1=1.246&r2=1.247
Comment 5 Andrew Gvozdev CLA 2011-04-05 13:38:07 EDT
OK, it worked. For the record, I ended with this build command on Hudson:
java \
  -jar tools/org.eclipse.releng.basebuilder/plugins/org.eclipse.equinox.launcher.jar \
  -application org.eclipse.ant.core.antRunner \
  -DupdateSiteLocation=../../update-site update-site test

I also added update site Q+A to CDT FAQ.
Comment 6 Axel Mueller CLA 2012-01-11 05:25:41 EST
The update site does not work (anymore?). The page does not exist (error 404).
Comment 7 Andrew Gvozdev CLA 2012-01-11 11:34:49 EST
(In reply to comment #6)
> The update site does not work (anymore?). The page does not exist (error 404).
That page is not valid anymore after moving CDT building to maven. You can find nightly builds at http://download.eclipse.org/tools/cdt/builds/juno/nightly
Comment 8 Axel Mueller CLA 2012-01-12 03:32:46 EST
(In reply to comment #7)
> That page is not valid anymore after moving CDT building to maven. You can find
> nightly builds at http://download.eclipse.org/tools/cdt/builds/juno/nightly
Thanks. That site works.