Jump to: navigation, search

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

m (See Also)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
If you are running your job on [https://build.eclipse.org/hudson/view/Athena%20CBI/], there is a generic run.sh script you can use to start up your build.
+
{{:DocumentationGuidelines/DraftHeader}}
 +
 
 +
If you are running your job on https://build.eclipse.org/hudson/view/Athena%20CBI/, there is a generic run.sh script you can use to start up your build.
  
 
[[Image:Hudson_build_parameters.png|right|thumb]]
 
[[Image:Hudson_build_parameters.png|right|thumb]]
Line 41: Line 43:
 
[[Category:Hudson]]
 
[[Category:Hudson]]
 
[[Category:Releng]]
 
[[Category:Releng]]
 +
[[Category:Draft_Documentation]]

Latest revision as of 21:58, 24 October 2009

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.


If you are running your job on https://build.eclipse.org/hudson/view/Athena%20CBI/, there is a generic run.sh script you can use to start up your build.

Hudson build parameters.png

The required input variables (either as Hudson parameters (This build is parameterized) or set in the Build > Execute Script textarea box) are:

PROJECTID
   tools.pdt
VERSION
   2.2.0
BUILDTYPE 
   I (or N)
EXTRAFLAGS
   (blank) or '-forceContextQualifier -fetchTag HEAD'
Hudson Execute Script.png

To use this script, I generally set this code in the Build > Execute Shell field of the Hudson job:

# configuration
export PROJRELENGROOT='-projRelengRoot :pserver:anonymous@dev.eclipse.org:/cvsroot/FIXME'
export PROJRELENGPATH='-projRelengPath org.eclipse.FIXME/org.eclipse.FIXME/releng'
# set SNAPSHOT true if you want foo-N-SNAPSHOT.zip instead of foo-N200909091234.zip, so downstream projects
# can more easily use your output as their input
#export SNAPSHOT="true"
# run the build
. /opt/public/cbi/build/org.eclipse.dash.common.releng/hudson/run.sh

See Also

Here are two template jobs used to quickly create a CVS-based Hudson job on build.eclipse.org: