Jump to: navigation, search

Difference between revisions of "DSDP/MTJ/Releng/Scripts"

< DSDP‎ | MTJ‎ | Releng
(Nightly scrips)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Scripts ==
+
== Shell Scripts ==
  
There are six scripts available in the ''scripts'' folder of the <span style="font-family: monospace;">org.eclipse.mtj.releng</span> plug-in.
+
There are six shell scripts available in the ''scripts'' folder of the <span style="font-family: monospace;">org.eclipse.mtj.releng</span> plug-in.
  
 
*[http://dev.eclipse.org/viewsvn/index.cgi/trunk/releng/org.eclipse.mtj.releng/scripts/build_developer.sh?root=DSDP_MTJ&view=markup build_developer.sh]
 
*[http://dev.eclipse.org/viewsvn/index.cgi/trunk/releng/org.eclipse.mtj.releng/scripts/build_developer.sh?root=DSDP_MTJ&view=markup build_developer.sh]
Line 24: Line 24:
 
<div style="border: 2px solid #808080; padding: 6px; background: #FFF8E7;">
 
<div style="border: 2px solid #808080; padding: 6px; background: #FFF8E7;">
 
setup.sh [-buildId name] [-metadata] [-revision tag] [-publish [-outputDirectory directory]] [-updateSite [-updateSiteDirectory directory]] [-notify] [-sign] [-runTests] M|N|I|S|R"
 
setup.sh [-buildId name] [-metadata] [-revision tag] [-publish [-outputDirectory directory]] [-updateSite [-updateSiteDirectory directory]] [-notify] [-sign] [-runTests] M|N|I|S|R"
 +
</div>
 +
 +
Arguments :
 +
 +
<div style="border: 2px solid #808080; padding: 6px; background: #FFF8E7;">
 +
'''buildId''' : The name to be used in the build.
 +
 +
'''metadata''' : Generates P2 metadata.
 +
 +
'''revision''' : Reflects the svn version tag of the code to be used in the build.
 +
 +
'''publish''' : Indicates if the mtj packages will be copied to the download server.
 +
 +
'''outputDirectory''' : The directory in which mtj packages will be placed after the build process if the -publish argument is set. By default, the ''/home/data/httpd/download.eclipse.org/dsdp/mtj/downloads/drops/'' directory is assumed.
 +
 +
'''updateSite''' : Indicate if an update site should be generated.
 +
 +
'''updateSiteDirectory''' :  The directory in which mtj will post the update site files if the -updateSite argument is set. By default, the ''/home/data/httpd/download.eclipse.org/dsdp/mtj/updates/'' directory is assumed.
 +
 +
'''notify''' : Indicate if the notification email must be sent after the build process. <font color="#960018"><b>[Not Implemented]</b></font>
 +
 +
'''sign''' : Indicate if the packages must be signed.
 +
 +
'''runTests''' : Indicate if the automatic test must be run.  <font color="#960018"><b>[Not Implemented]</b></font>
 +
 +
'''M|N|I|S|R''' :
 +
* N : Nightly
 +
* I : Integration
 +
* M : Maintenance
 +
* S : Stable (Milestone or Release Candidate)
 +
* R : Release
 +
 
</div>
 
</div>
  
Line 30: Line 62:
  
 
Used to generate an official build and publish it in the download server under '''/home/data/httpd/download.eclipse.org/dsdp/mtj/downloads/drops/''' and create an update site at '''/home/data/httpd/download.eclipse.org/dsdp/mtj/updates/0.9/NightlyBuilds/'''
 
Used to generate an official build and publish it in the download server under '''/home/data/httpd/download.eclipse.org/dsdp/mtj/downloads/drops/''' and create an update site at '''/home/data/httpd/download.eclipse.org/dsdp/mtj/updates/0.9/NightlyBuilds/'''
 
  
 
=== Developer scrips ===
 
=== Developer scrips ===
  
 
Used to run the same process of an official build, but, instead of publish it in the download server, it copy the resulting drop to '''/opt/public/dsdp/mtj/test/drops/''' and create an update site at '''/opt/public/dsdp/mtj/test/drops/update/'''
 
Used to run the same process of an official build, but, instead of publish it in the download server, it copy the resulting drop to '''/opt/public/dsdp/mtj/test/drops/''' and create an update site at '''/opt/public/dsdp/mtj/test/drops/update/'''
 +
 +
== Ant Scripts ==
 +
 +
There are 3 ant scripts available in the <span style="font-family: monospace;">org.eclipse.mtj.releng</span> plug-in.
 +
 +
*[http://dev.eclipse.org/viewsvn/index.cgi/trunk/releng/org.eclipse.mtj.releng/build.xml?root=DSDP_MTJ&view=markup build.xml]
 +
*[http://dev.eclipse.org/viewsvn/index.cgi/trunk/releng/org.eclipse.mtj.releng/buildUpdateSite.xml?root=DSDP_MTJ&view=markup buildUpdateSite.xml]
 +
*[http://dev.eclipse.org/viewsvn/index.cgi/trunk/releng/org.eclipse.mtj.releng/builder/main/customTargets.xml?root=DSDP_MTJ&view=markup customTargets.xml]
 +
 
[[Category:DSDP]] [[Category:MTJ]] [[Category:Releng]]
 
[[Category:DSDP]] [[Category:MTJ]] [[Category:Releng]]

Latest revision as of 07:41, 31 December 2008

Shell Scripts

There are six shell scripts available in the scripts folder of the org.eclipse.mtj.releng plug-in.

All these scrips use the bootstrap build.sh available in the org.eclipse.mtj.releng plug-in root.


build.sh

Usage :

setup.sh [-buildId name] [-metadata] [-revision tag] [-publish [-outputDirectory directory]] [-updateSite [-updateSiteDirectory directory]] [-notify] [-sign] [-runTests] M|N|I|S|R"

Arguments :

buildId : The name to be used in the build.

metadata : Generates P2 metadata.

revision : Reflects the svn version tag of the code to be used in the build.

publish : Indicates if the mtj packages will be copied to the download server.

outputDirectory : The directory in which mtj packages will be placed after the build process if the -publish argument is set. By default, the /home/data/httpd/download.eclipse.org/dsdp/mtj/downloads/drops/ directory is assumed.

updateSite : Indicate if an update site should be generated.

updateSiteDirectory : The directory in which mtj will post the update site files if the -updateSite argument is set. By default, the /home/data/httpd/download.eclipse.org/dsdp/mtj/updates/ directory is assumed.

notify : Indicate if the notification email must be sent after the build process. [Not Implemented]

sign : Indicate if the packages must be signed.

runTests : Indicate if the automatic test must be run. [Not Implemented]

M|N|I|S|R :

  • N : Nightly
  • I : Integration
  • M : Maintenance
  • S : Stable (Milestone or Release Candidate)
  • R : Release


Nightly scrips

Used to generate an official build and publish it in the download server under /home/data/httpd/download.eclipse.org/dsdp/mtj/downloads/drops/ and create an update site at /home/data/httpd/download.eclipse.org/dsdp/mtj/updates/0.9/NightlyBuilds/

Developer scrips

Used to run the same process of an official build, but, instead of publish it in the download server, it copy the resulting drop to /opt/public/dsdp/mtj/test/drops/ and create an update site at /opt/public/dsdp/mtj/test/drops/update/

Ant Scripts

There are 3 ant scripts available in the org.eclipse.mtj.releng plug-in.