Package buildbot :: Package steps :: Package package :: Package rpm :: Module rpmbuild :: Class RpmBuild
[frames] | no frames]

Class RpmBuild

source code

process.properties.PropertiesMixin --+            
                                     |            
           process.buildstep.BuildStep --+        
                                         |        
        process.buildstep.LoggingBuildStep --+    
                                             |    
                            shell.ShellCommand --+
                                                 |
                                                RpmBuild

Build and RPM based on pased spec filename

Instance Methods
 
__init__(self, specfile=None, topdir='`pwd`', builddir='`pwd`', rpmdir='`pwd`', sourcedir='`pwd`', specdir='`pwd`', srcrpmdir='`pwd`', dist='.el5', autoRelease=False, vcsRevision=False, **kwargs)
Creates the RpmBuild object.
source code
 
start(self)
Buildbot Calls Me when it's time to start
source code
 
createSummary(self, log)
Create nice summary logs.
source code

Inherited from shell.ShellCommand: buildCommandKwargs, describe, getWorkdir, setBuild, setCommand, setDefaultWorkdir, setStepStatus, setupEnvironment

Inherited from process.buildstep.LoggingBuildStep: addLogFile, checkDisconnect, commandComplete, evaluateCommand, getText, getText2, interrupt, maybeGetText2, setStatus, setupLogfiles, startCommand

Inherited from process.buildstep.BuildStep: __provides__, acquireLocks, addCompleteLog, addFactoryArguments, addHTMLLog, addLog, addLogObserver, addURL, failed, finished, getLog, getSlaveName, getStepFactory, releaseLocks, runCommand, setBuildSlave, setProgress, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

Inherited from process.properties.PropertiesMixin: __providedBy__, getProperties, getProperty, hasProperty, has_key, render, setProperty

Class Variables
  name = 'rpmbuilder'
  haltOnFailure = 1
  flunkOnFailure = 1
  description = ['RPMBUILD']
  descriptionDone = ['RPMBUILD']

Inherited from shell.ShellCommand: renderables

Inherited from process.buildstep.LoggingBuildStep: cmd, parms, progressMetrics

Inherited from process.buildstep.BuildStep: __implemented__, alwaysRun, build, doStepIf, flunkOnWarnings, hideStepIf, locks, progress, set_runtime_properties, step_status, useProgress, warnOnFailure, warnOnWarnings

Instance Variables

Inherited from shell.ShellCommand: command, lazylogfiles, logfiles

Method Details

__init__(self, specfile=None, topdir='`pwd`', builddir='`pwd`', rpmdir='`pwd`', sourcedir='`pwd`', specdir='`pwd`', srcrpmdir='`pwd`', dist='.el5', autoRelease=False, vcsRevision=False, **kwargs)
(Constructor)

source code 

Creates the RpmBuild object.

Parameters:
  • specfile (str) - the name of the spec file for the rpmbuild
  • topdir (str) - the top directory for rpm building.
  • builddir (str) - the directory to use for building
  • rpmdir (str) - the directory to dump the rpms into
  • sourcedir (str) - the directory that houses source code
  • srcrpmdir (str) - the directory to dump source rpms into
  • dist (str) - the distribution to build for
  • autoRelease (boolean) - if the auto release mechanics should be used
  • vcsRevision (boolean) - if the vcs revision mechanics should be used
  • kwargs (dict) - All further keyword arguments.
Overrides: process.buildstep.BuildStep.__init__

start(self)

source code 

Buildbot Calls Me when it's time to start

Overrides: process.buildstep.BuildStep.start

createSummary(self, log)

source code 

Create nice summary logs.

Parameters:
  • log - The log to create summary off of.
Overrides: process.buildstep.LoggingBuildStep.createSummary