Skip to main content
Jump to: navigation, search

Difference between revisions of "E4/Builds"

< E4
(Setup)
(Builds)
 
(30 intermediate revisions by 6 users not shown)
Line 1: Line 1:
= Builds =
 
  
== Milestone Builds ==
 
  
<table border="1">
+
*** OLDER INFORMATION ***
<tr>
+
<th>Date</th>
+
<th>Build</th>
+
</tr>
+
  
<tr>
 
<td>Every night, 19:30 EDT</td>
 
<td>M4 prep build</td>
 
</tr>
 
  
  
<tr>
+
= Builds  =
<td>Friday, June 26th, 08:30 EDT</td>
+
<td>Final build towards M4 - we'll need a go on this build</td>
+
</tr>
+
  
</table>
+
In e4 (like in the other projects under the Eclipse top-level project), we produce regular builds. One important kind of build is called ''integration build'' - usually run once a week to produce a version that is good enough to for purposes of integrating with other teams' work, and for self-hosting. Integration builds simply take what's in master, tag it, and generate a report of changes since the last build.
  
== Integration Builds ==
+
== Plug-in Versioning  ==
 +
 
 +
Our current stable build, [http://download.eclipse.org/e4/downloads/drops/S-0.15-201401152200/index.html e4 0.15], has all of our plugins marked as (Incubation) and new plugins should have a version 0.15.0.qualifier.
 +
 
 +
Now that master is open for our 0.16 stable stream we are following the standard [[Version Numbering]] guidelines. For example, for existing bundles:
 +
 
 +
*if you contribute bug fixes for a bundle, please increment the number to '''0.11.1.qualifier'''
 +
*if you change the public API or public classes (to add new API or to refactor API for the 0.16 release), please increment the number to '''0.12.0.qualifier'''
 +
 
 +
For new bundles, please mark them as '''0.16.0.qualifier'''
 +
 
 +
== Integration Builds ==
  
 
{| border="1"
 
{| border="1"
|+ E4 Integration Builds
+
|+ E4 Integration Builds  
 
|- align="left"
 
|- align="left"
! Date !! Time !! Frequency
+
! Date  
 +
! Time  
 +
! Frequency
 
|-
 
|-
| Thursdays
+
| every day
| 19:30 EST
+
| 22:00 EST  
| Weekly
+
| Daily
 
|}
 
|}
  
 
[http://download.eclipse.org/e4/downloads/ e4 Downloads Page]
 
[http://download.eclipse.org/e4/downloads/ e4 Downloads Page]
  
== Submitting For the Build ==
+
== Submitting For the Build ==
  
In General:
+
In General:  
  
'''Checking in code''': The checkin comment should at a minimum include "bug #", and preferably be of the form "bug # summary"
+
'''Checking in code''': The checkin comment should at a minimum include "bug #", and preferably be of the form "bug # summary"  
  
For the build:
+
For the build:  
  
'''Tool''': Teams should use the "Eclipse Releng Tools" to update their releng project for each build.  The releng tools can be installed from the update sites already included in 3.5.
+
'''Tool''': we don't need to use the releng tool to submit for builds, that happens automatically.
  
[[Image:Install-Releng-Tools.png]]
+
[[Image:Install-Releng-Tools.png]]  
  
'''Tags''': tags should be of the form v<date>, so v20081120 or v20081120-1300
+
Releng tools are in the eclipse updates site now that Luna is released and can be installed from the director app as well:
  
'''Procedure''':
+
eclipse/eclipse -application org.eclipse.equinox.p2.director \
<ol>
+
-consoleLog -noSplash \
<li>check out your team releng project from e4/releng</li>
+
  -repository http://download.eclipse.org/eclipse/updates/4.4 \
<li>use the psf files to check out your core plugins, tests, and examples</li>
+
  -installIU org.eclipse.releng.tools.feature.group
<li>Run Team>Release from the context menu:</li>
+
<ol>
+
<li>Select your team's releng project, like '''org.eclipse.e4.ui.releng'''.<br />
+
[[Image:Release-1.png]]
+
<br />
+
</li>
+
<li>Select the projects you want to release from your map file. <br />
+
[[Image:Release-2.png]]
+
<br />
+
</li>
+
<li>You can review the changed projects in this pane. Make sure 'Generate Build Notes' is selected. <br />
+
[[Image:Release-3.png]]
+
<br />
+
</li>
+
<li>Copy out the build note changes so you can send an email to ''e4-dev@eclipse.org'',
+
with a subject that starts with [releng].  You don not have to select a build
+
notes file to continue. <br />
+
[[Image:Release-4.png]]
+
<br />
+
</li>
+
<li>Enter the release tag for you build. This would normally be the build time and date with a v in front, '''v20090101-1930''' <br />
+
  [[Image:Release-5.png]]
+
<br />
+
</li>
+
<li>You can review the changes to your map file here, or simply continue. <br />
+
[[Image:Release-6.png]]
+
<br />
+
</li>
+
<li>Commit the changes so they will be picked up by the I-build</li>
+
</ol>
+
</ol>
+
  
  
 +
'''Tags''': tags should be of the form v&lt;date&gt;, so v20081120 or v20081120-1300
  
'''Versioning Plugins''': Teams should try and follow the standard versioning rules posted at [[Version_Numbering]]. If you need to copy over an existing eclipse project to make changes, please increment the minor number by 100. i.e. 3.5.0 becomes 3.105.0. When you need to break API, then update the major number. i.e. 3.105.0 becomes 4.0.0
+
'''Versioning Plugins''': Teams should try and follow the standard versioning rules posted at [[Version Numbering]]. If you need to copy over an existing eclipse project to make changes, please increment the minor number by 100. i.e. 3.5.0 becomes 3.105.0. When you need to break API, then update the major number. i.e. 3.105.0 becomes 4.0.0
  
== Build Infrastructure ==
+
== Build Infrastructure ==
  
We run our builds on build.eclipse.org (a ppc linux machine) with a local userid, '''e4Build'''.
+
We run our builds on build.eclipse.org (an x86_64 linux machine) with a local userid, '''e4Build'''.  
  
=== Build Scripts ===
+
=== Build Scripts ===
The main build project is in <code>e4/releng/org.eclipse.e4.builder</code>.  It contains the <code>masterBuild.sh</code> script that can be modified to run a test build or a real build (tagged and uploaded to download.eclipse.org).  It also contains the PDE build directory, <code>e4/releng/org.eclipse.e4.builder/builder/general</code>, that builds our master feature.  Our PDE build directory also contains modified code/XML to support using p2 to run our automated tests.
+
  
 +
The main build project is in <code>e4/releng/org.eclipse.e4.builder</code>. It contains the <code>masterBuild.sh</code> script that can be modified to run a test build or a real build (tagged and uploaded to download.eclipse.org).  Our build is now controlled by maven/tycho and the pom.xml.
  
=== Machine Setup ===
+
It also contains the old PDE build directory, <code>e4/releng/org.eclipse.e4.builder/builder/general</code>, that used to build our master feature.
  
There are a number of directories that need to be available to run a build.
+
<br>
  
<ul>
+
=== Machine Setup ===
<li>/opt/public/common: the java installs can be appropriate for your architecture.
+
<pre>
+
apache-ant-1.7.0/        ibm-java2-ppc-50@      ibm-java-jdk-ppc-60@
+
flex_sdk_3.2.0.3794_mpl/ ibm-java2-ppc-50-old@  ibm-java-ppc-60@
+
ibm-java2-142@            ibm-java2-ppc64-50@
+
</pre></li>
+
<li>/shared/eclipse/e4/flex_sdk_3.2.0.3794_mpl</li>
+
<li>/shared/eclipse/e4/build/e4</li>
+
</ul>
+
  
To run the tests, we need a virtual X server on :8:
+
To run the tests, we need a virtual X server on&nbsp;:8:  
  
  Xvfb :8 -screen 0 1280x1024x24 -auth auth.cfg
+
  Xvfb&nbsp;:8 -screen 0 1280x1024x24 -auth auth.cfg
 
  metacity --display=:8.0 --replace --sm-disable  
 
  metacity --display=:8.0 --replace --sm-disable  
  
Where auth.cfg contains at least:
+
Where auth.cfg contains at least:  
  
 
  localhost
 
  localhost
  
== Build Requirements ==
 
  
The build is currently controlled from the <code>masterBuild.sh</code> script. There are a number of dependencies that make this a linux only build, and the machine has to be set up the same way as build.eclipse.org.  This section will capture the requirements/process so that all of the needed steps are executed.  See bug [https://bugs.eclipse.org/bugs/show_bug.cgi?id=281407 releng - Run a build from any platform] for any discussions about this section.
+
=== Setup ===
  
=== Setup ===
+
In [http://git.eclipse.org/c/e4/org.eclipse.e4.releng.git/tree/org.eclipse.e4.builder/scripts/buildCBI.sh buildCBI.sh]
  
In [http://dev.eclipse.org/viewcvs/index.cgi/e4/releng/org.eclipse.e4.builder/scripts/masterBuild.sh?view=co&content-type=text/plain masterBuild.sh]
+
We have a set of variables that are needed in order to make the system go.  
  
We have a set of variables that are needed in order to make the system go.
+
{| border="1"
 
+
|-
<table border="1">
+
! Variable
<tr>
+
! Comments
<th>Variable</th>
+
|-
<th>Comments</th>
+
| writableBuildRoot
</tr>
+
|
 
+
<tr>
+
<td>writableBuildRoot</td>
+
<td>
+
 
The base directory that contains all build related files except the JREs.
 
The base directory that contains all build related files except the JREs.
</td>
 
</tr>
 
  
<tr>
+
|-
<td>projRelengBranch</td>
+
| relengBranch
<td>
+
|
The branch to check out the releng project (this contains subprojects that contain all our maps). Default is HEAD.
+
The branch to check out the releng project (this contains subprojects that contain all our repository to branch mapping). Default is master.
</td>
+
</tr>
+
  
<tr>
+
|-
<td>projRoot</td>
+
| arch
<td>
+
|
The CVS root used to check out the releng project.  For anonymous test builds, it is <code>:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse</code>
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>arch</td>
+
<td>
+
 
Build architecture, currently x86 or ppc.
 
Build architecture, currently x86 or ppc.
</td>
 
</tr>
 
  
<tr>
+
|-
<td>supportDir</td>
+
| builddate
<td>
+
|
The directory that contains the eclipse install used to build (by default we use the eclipse basebuilder), and usually <code>org.eclipse.e4.builder</code> directory that we launch the build against.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>builderDir</td>
+
<td>
+
Points to the <code>org.eclipse.e4.builder</code> so that it can be in a different place than the <code>supportDir</code>.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>builddate</td>
+
<td>
+
 
Build date in the format YYYYMMDD, ex: 20090625
 
Build date in the format YYYYMMDD, ex: 20090625
</td>
 
</tr>
 
  
<tr>
+
|-
<td>buildtime</td>
+
| buildtime
<td>
+
|
 
Build time in the 24 hour clock format HHMM, ex: 1930
 
Build time in the 24 hour clock format HHMM, ex: 1930
</td>
 
</tr>
 
  
<tr>
+
|-
<td>tagMaps</td>
+
| eclipseIBuild
<td>
+
|
Controls if we tag the map files after we check out our releng project.
+
The ID of the eclipse build we use as a target platform. With the changes to use a zipped repo for the eclipse SDK, this ID is only used to generate URLs on the download page. It should potentially be used to collect the correct p2 repo for the eclipse/equinox SDK.
</td>
+
</tr>
+
  
<tr>
+
|-
<td>publishDir</td>
+
| javaHome
<td>
+
|
Controls if we should upload the finished build.  Currently this is the form of an SCP destination directory.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>basebuilderBranch</td>
+
<td>
+
The tag that determines which base builder we use for the build.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>eclipseIBuild</td>
+
<td>
+
The ID of the eclipse build we use as a target platform.  With the changes to use a zipped repo for the eclipse SDK, this ID is only used to generate URLs on the download page.  It should potentially be used to  collect the correct p2 repo for the eclipse/equinox SDK.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>javaHome</td>
+
<td>
+
 
The java that is used to launch JVMs from the masterBuild.sh script.
 
The java that is used to launch JVMs from the masterBuild.sh script.
</td>
 
</tr>
 
  
<tr>
+
|-
<td>buildTimestamp</td>
+
| buildTimestamp
<td>
+
|
 
The date and time together: 20090625-1930
 
The date and time together: 20090625-1930
</td>
 
</tr>
 
  
<tr>
 
<td>buildDir</td>
 
<td>
 
The directory to build in, by default <code>$writableBuildRoot/build/e4/downloads/drops/4.0.0</code>.
 
</td>
 
</tr>
 
  
<tr>
+
|-
<td>targetDir</td>
+
| writableBuildRoot
<td>
+
|
A directory that contains "target platforms" to work against.  It contains a zip download cache, any eclipse target platforms, an untransformed repo directory (a directory with zipped repos to use in the build), and the runnable repo generated by the build.
+
|}
</td>
+
</tr>
+
 
+
<tr>
+
<td>buildDirectory</td>
+
<td>
+
The directory for the current build, <code>$buildDir/I$buildTimestamp</code> by default.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>testDir</td>
+
<td>
+
The directory used for running the automated tests.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>buildResults</td>
+
<td>
+
The directory for the build results.  This will contain the index.html, compile logs, p2 repo, platform zips, etc.  Defaults to <code>$buildDirectory/I$buildTimestamp</code>.  So for example, <code>.../4.0.0/I20090625-1930/I20090625-1930</code>.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>relengBaseBuilderDir</td>
+
<td>
+
The root directory for the eclipse install that will run the build.  By default we use the eclipse basebuilder.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>writableBuildRoot</td>
+
<td>
+
</td>
+
</tr>
+
 
+
</table>
+
 
+
<br />
+
 
+
In [http://dev.eclipse.org/viewcvs/index.cgi/e4/releng/org.eclipse.e4.builder/builder/general/build.properties?view=co general/build.properties]
+
 
+
We also code/re-generate a number of properties in the PDE builder.
+
 
+
<table border="1">
+
<tr>
+
<th>Variable</th>
+
<th>Comments</th>
+
</tr>
+
 
+
<tr>
+
<td>buildType</td>
+
<td>
+
Set to <b>I</b>, but not currently used to do more than create the matching build results directory and correct build "tag".
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>eclipseBaseURL</td>
+
<td>
+
The URL of the eclipse SDK base used for this build.  This was used to download targets and automated test frameworks, but is now
+
only used to generate links in the download page.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>emfBaseURL</td>
+
<td>
+
Now only used to generate links in the download page.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>gefBaseURL</td>
+
<td>
+
Now only used to generate links in the download page.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>wstBaseURL</td>
+
<td>
+
Now only used to generate links in the download page.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>JAVA60_HOME</td>
+
<td>
+
A base java 6 install, set to <code>/opt/public/common/ibm-java-jdk-ppc-60</code> to match build.eclipse.org.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>JAVA50_64_HOME</td>
+
<td>
+
A base java 5 64-bit install, set to <code>/opt/public/common/ibm-java2-ppc64-50</code> to match build.eclipse.org.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>JAVA50_HOME</td>
+
<td>
+
A base java 5 install, set to <code>/opt/public/common/ibm-java2-ppc-50</code> to match build.eclipse.org.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>JAVA14_HOME</td>
+
<td>
+
A base java 1.4.2 install, set to <code>/opt/public/common/ibm-java2-142</code> to match build.eclipse.org.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>JavaSE-1.6</td>
+
<td>
+
Definition of the jars that make up the JSE 1.6 BREE.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>J2SE-1.5</td>
+
<td>
+
Definition of the jars that make up the J2SE 1.5 BREE.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>J2SE-1.4</td>
+
<td>
+
Definition of the jars that make up the J2SE 1.4 BREE.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>flex.sdk</td>
+
<td>
+
A property to the base directory for a flex SDK, needed to build the actionScript supporting tools.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>repoBaseLocation</td>
+
<td>
+
This property points to the directory of zipped repos to be used  by the built.  It is processed through the repo2runnable ant task.
+
</td>
+
</tr>
+
 
+
<tr>
+
<td>transformedRepoLocation</td>
+
<td>
+
The runnable repo produced by repo2runnable.  Defaults to ${repoBaseLocation}-trans
+
</td>
+
</tr>
+
 
+
</table>
+
 
+
=== Manual Setup ===
+
 
+
A lot of the directory structures must be set up before you can run a build.  Perhaps the directory structure needs to be flattened so that it can be more easily created.
+
 
+
The basebuilder (eclipse install used to run the build) and org.eclipse.e4.builder project have to be on disk somewhere.  A build updates them to the latest required versions and links to them using symlinks so that they can be used to run the build, drive the build, and provide the testing instructions.
+
 
+
The runnable repo is used for the build as well as to produce the platform zips and install supporting bundles for the automated tests.  The untransformed repo location must be created, and populated with repos downloaded by hand.  Currently, the eclipse SDK repo must be hand rolled as well.  It would be nice to have the runnable repo populated by downloading the needed zipped repos.
+
 
+
The other possibility is to use the repo2runnable task directly and not through <code>repoBaseLocation</code>.  Then multiple repo locations can be specified either as local files or URLs (to zipped repos or p2 repos). 
+
 
+
There must be at least 3 JREs/JDKs installed on a machine used to build, 1.4.2, 1.5, and 1.6.  A bundles BREE instructs PDE build which set of libraries to use during compile.
+
 
+
= CVS =
+
 
+
The resources, ui, and swt teams now have plugins in their team area in the e4 project.  Our project is under :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
+
 
+
 
+
== Resources ==
+
 
+
The resources CVS structure is:
+
 
+
*e4
+
**org.eclipse.e4.resources
+
***bundles
+
***doc
+
***examples
+
***features
+
***tests
+
**releng
+
***org.eclipse.e4.resources.releng
+
 
+
The '''org.eclipse.e4.resources.releng''' contains the map files for building as well as Team Project Sets that should be used for checking out the projects to be worked on.
+
 
+
Resources currently has 4 features.  2 feature patches for the plugins (one for rcp, one for platform), a feature that contains the 2 patches, and a test feature for the tests.
+
 
+
=== Setup/Restrictions ===
+
 
+
Resources can currently update a 3.5 SDK I build and run.
+
 
+
== UI ==
+
 
+
The UI CVS structure is:
+
 
+
*e4
+
**org.eclipse.e4.ui
+
***bundles
+
***doc
+
***examples
+
***features
+
***tests
+
**releng
+
***org.eclipse.e4.ui.releng
+
 
+
The '''org.eclipse.e4.ui.releng''' contains the map files for building as well as Team Project Sets that should be used for checking out the projects to be worked on.
+
 
+
UI currently has one main feature for the modelled workbench and one feature for the demos.  The build master feature, org.eclipse.e4.master, is also in UI for now.
+
 
+
=== Setup/Restrictions ===
+
 
+
UI currently requires EMF 2.4.1 or 2.5.0 in installed on 3.5 in order to run.  They can be installed from the update site included with the I builds.
+
 
+
== SWT ==
+
 
+
The SWT CVS structure is:
+
 
+
*e4
+
**org.eclipse.e4.swt
+
***bundles
+
***doc
+
***examples
+
***features
+
***tests
+
**releng
+
***org.eclipse.e4.swt.releng
+
 
+
The '''org.eclipse.e4.swt.releng''' contains the map files for building as well as Team Project Sets that should be used for checking out the projects to be worked on.
+
 
+
SWT has 2 features, one for the ActionScript tools and another for the ActionScript tests.
+
 
+
=== Setup/Restrictions ===
+
 
+
To update to the ActionScript tools you must first download and install the Open Source Flex SDK.
+
 
+
'''Setup Flex environment:'''
+
 
+
# Download and install the Adobe Open Source Flex SDK (available from http://opensource.adobe.com). NOTE: The path where you install the Flex SDK must contain no spaces. This is due to a bug in FCSH.
+
# update your eclipse.ini file and add another line at the end, -Dflex.sdk=&lt;your path to the installed sdk&gt;
+
  
Then you can update to the ActionScript tools.  To work on the tools themselves, you must also set the FLEX_SDK classpath variable in Window>Preferences>Java>Build Path>Classpath Variables to point to the sdk location.
+
== Hudson Builds ==
  
 +
Some jobs were setup on Hudson HIPP instance at http://hudson.eclipse.org/e4 .
  
To work on org.eclipse.swt, org.eclipse.swt.e4.jcl, org.eclipse.swt.e4.examples, and org.eclipse.swt.examples you need to create a Linked Resource variable, WORKSPACE, that points to your current workspace root, from Window>Preferences>General>Workspace>Linked Resources. Also if .classpath_flex exists it must be copied to the .classpath entry.
+
For an active repo, I believe we should have 3 jobs:
 +
* <repoName> which builds the latest commit from master (checked hourly) and publish the output to http://download.eclipse.org/e4/snapshots/<repoName>
 +
* <repoName>-Gerrit which builds incoming Gerrit patches to vote +1 or -1 on them
 +
* <repoName>-Sonar which builds latest commit from master (checked weekly) and publish quality reports on SonarQube ( http://dev.eclipse.org/sonar )

Latest revision as of 10:36, 19 February 2015


      • OLDER INFORMATION ***


Builds

In e4 (like in the other projects under the Eclipse top-level project), we produce regular builds. One important kind of build is called integration build - usually run once a week to produce a version that is good enough to for purposes of integrating with other teams' work, and for self-hosting. Integration builds simply take what's in master, tag it, and generate a report of changes since the last build.

Plug-in Versioning

Our current stable build, e4 0.15, has all of our plugins marked as (Incubation) and new plugins should have a version 0.15.0.qualifier.

Now that master is open for our 0.16 stable stream we are following the standard Version Numbering guidelines. For example, for existing bundles:

  • if you contribute bug fixes for a bundle, please increment the number to 0.11.1.qualifier
  • if you change the public API or public classes (to add new API or to refactor API for the 0.16 release), please increment the number to 0.12.0.qualifier

For new bundles, please mark them as 0.16.0.qualifier

Integration Builds

E4 Integration Builds
Date Time Frequency
every day 22:00 EST Daily

e4 Downloads Page

Submitting For the Build

In General:

Checking in code: The checkin comment should at a minimum include "bug #", and preferably be of the form "bug # summary"

For the build:

Tool: we don't need to use the releng tool to submit for builds, that happens automatically.

Install-Releng-Tools.png

Releng tools are in the eclipse updates site now that Luna is released and can be installed from the director app as well:

eclipse/eclipse -application org.eclipse.equinox.p2.director \
-consoleLog -noSplash \
-repository http://download.eclipse.org/eclipse/updates/4.4 \
-installIU org.eclipse.releng.tools.feature.group


Tags: tags should be of the form v<date>, so v20081120 or v20081120-1300

Versioning Plugins: Teams should try and follow the standard versioning rules posted at Version Numbering. If you need to copy over an existing eclipse project to make changes, please increment the minor number by 100. i.e. 3.5.0 becomes 3.105.0. When you need to break API, then update the major number. i.e. 3.105.0 becomes 4.0.0

Build Infrastructure

We run our builds on build.eclipse.org (an x86_64 linux machine) with a local userid, e4Build.

Build Scripts

The main build project is in e4/releng/org.eclipse.e4.builder. It contains the masterBuild.sh script that can be modified to run a test build or a real build (tagged and uploaded to download.eclipse.org). Our build is now controlled by maven/tycho and the pom.xml.

It also contains the old PDE build directory, e4/releng/org.eclipse.e4.builder/builder/general, that used to build our master feature.


Machine Setup

To run the tests, we need a virtual X server on :8:

Xvfb :8 -screen 0 1280x1024x24 -auth auth.cfg
metacity --display=:8.0 --replace --sm-disable 

Where auth.cfg contains at least:

localhost


Setup

In buildCBI.sh

We have a set of variables that are needed in order to make the system go.

Variable Comments
writableBuildRoot

The base directory that contains all build related files except the JREs.

relengBranch

The branch to check out the releng project (this contains subprojects that contain all our repository to branch mapping). Default is master.

arch

Build architecture, currently x86 or ppc.

builddate

Build date in the format YYYYMMDD, ex: 20090625

buildtime

Build time in the 24 hour clock format HHMM, ex: 1930

eclipseIBuild

The ID of the eclipse build we use as a target platform. With the changes to use a zipped repo for the eclipse SDK, this ID is only used to generate URLs on the download page. It should potentially be used to collect the correct p2 repo for the eclipse/equinox SDK.

javaHome

The java that is used to launch JVMs from the masterBuild.sh script.

buildTimestamp

The date and time together: 20090625-1930


writableBuildRoot

Hudson Builds

Some jobs were setup on Hudson HIPP instance at http://hudson.eclipse.org/e4 .

For an active repo, I believe we should have 3 jobs:

  • <repoName> which builds the latest commit from master (checked hourly) and publish the output to http://download.eclipse.org/e4/snapshots/<repoName>
  • <repoName>-Gerrit which builds incoming Gerrit patches to vote +1 or -1 on them
  • <repoName>-Sonar which builds latest commit from master (checked weekly) and publish quality reports on SonarQube ( http://dev.eclipse.org/sonar )

Back to the top