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

Class RpmBuild

source code

   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: checkForOldSlaveAndLogfiles, describe, 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: acquireLocks, addCompleteLog, addFactoryArguments, addHTMLLog, addLog, addLogObserver, addURL, failed, finished, getLog, getProperty, getSlaveName, getStepFactory, releaseLocks, runCommand, setBuild, setBuildSlave, setProgress, setProperty, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

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

Inherited from process.buildstep.LoggingBuildStep: parms, progressMetrics

Inherited from process.buildstep.BuildStep: alwaysRun, doStepIf, flunkOnWarnings, locks, useProgress, warnOnFailure, warnOnWarnings

Instance Variables

Inherited from shell.ShellCommand: command, lazylogfiles, logfiles

Inherited from process.buildstep.BuildStep: build, progress, step_status

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