Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Common Build Infrastructure/Getting Started/Build In Hudson/Ant Job"

(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Rather than starting your build with [[Common Build Infrastructure/Getting Started/Build In Hudson/Sample Ant Job|a Bash script]], you can use Ant to build.
+
{{:DocumentationGuidelines/DraftHeader}}
  
1. Set up the Ant script just as if you were [[Common Build Infrastructure/Getting Started/Build In Eclipse|building from within Eclipse]].
+
Rather than starting your build with [[Common Build Infrastructure/Getting Started/Build In Hudson/Bash Job|a Bash script]], you can [[Common Build Infrastructure/Getting Started/Build In Hudson/Ant_Script|use Ant to build]].
  
2. On the job configuration screen select '''Invoke Ant''', and then Advanced.
+
1. Set up the Ant script just as if you were [[Common Build Infrastructure/Getting Started/Build In Eclipse|building from within Eclipse]] with a [[Common Build Infrastructure/Getting Started/Build In Hudson/Ant Script|few slight modifications for Hudson]].
 +
 
 +
2. On the job configuration screen select '''Invoke Ant''', and then '''Advanced'''.
  
 
3. Your Ant build configuration will look similar to the following:
 
3. Your Ant build configuration will look similar to the following:
Line 9: Line 11:
 
[[Image:AntAthenaHudson.jpg]]
 
[[Image:AntAthenaHudson.jpg]]
  
4. If you have additional properties that you do not want to include in your build.properties file, you can pass them in through this configuration.   This allows you to have a generic build.properties and override or add as necessary specifics that may be needed for your Hudson build.
+
To be more precise, these are the details of the configurations :
 +
* '''Targets''': left '''run''' as default
 +
* '''Build File''': set here the build.xml that relies on your releng project. The path starts from the job workspace. ( browse the job workspace to find it if you are not sure of the path location )
 +
* '''Properties''': by default, set at least the two path for the releng build :
 +
relengBaseBuilderDir=/opt/public/cbi/build/org.eclipse.releng.basebuilder
 +
relengCommonBuilderDir=/opt/public/cbi/build/org.eclipse.dash.common.releng
 +
 
 +
4. If you have additional properties that you do not want to include in your build.properties file, you can pass them in through this configuration ( in the Properties box ). This allows you to have a generic build.properties and override or add as necessary specifics that may be needed for your Hudson build.
 +
 
 +
For example, you can specify the {writableBuildRoot} property there.
 +
writableBuildRoot=/opt/users/hudsonbuild/.hudson/jobs/'''JOBNAME'''/workspace/build
  
 
== See Also ==
 
== See Also ==
  
* [[Common_Build_Infrastructure/Getting_Started/Build_In_Hudson/Sample_Ant_Job]]
+
* [[Common_Build_Infrastructure/Getting_Started/Build_In_Hudson/Ant_Script|Build In Hudson - Ant Job]]
  
 
[[Category:Athena Common Build]]
 
[[Category:Athena Common Build]]
 
[[Category:Hudson]]
 
[[Category:Hudson]]
 
[[Category:Releng]]
 
[[Category:Releng]]
 +
[[Category:Draft_Documentation]]

Revision as of 05:47, 12 January 2010

Warning2.png
Draft Content
This page is currently under construction. Community members are encouraged to maintain the page, and make sure the information is accurate.


Rather than starting your build with a Bash script, you can use Ant to build.

1. Set up the Ant script just as if you were building from within Eclipse with a few slight modifications for Hudson.

2. On the job configuration screen select Invoke Ant, and then Advanced.

3. Your Ant build configuration will look similar to the following:

AntAthenaHudson.jpg

To be more precise, these are the details of the configurations :

  • Targets: left run as default
  • Build File: set here the build.xml that relies on your releng project. The path starts from the job workspace. ( browse the job workspace to find it if you are not sure of the path location )
  • Properties: by default, set at least the two path for the releng build :
relengBaseBuilderDir=/opt/public/cbi/build/org.eclipse.releng.basebuilder
relengCommonBuilderDir=/opt/public/cbi/build/org.eclipse.dash.common.releng

4. If you have additional properties that you do not want to include in your build.properties file, you can pass them in through this configuration ( in the Properties box ). This allows you to have a generic build.properties and override or add as necessary specifics that may be needed for your Hudson build.

For example, you can specify the {writableBuildRoot} property there.

writableBuildRoot=/opt/users/hudsonbuild/.hudson/jobs/JOBNAME/workspace/build

See Also

Copyright © Eclipse Foundation, Inc. All Rights Reserved.