org.jenkinsci.plugins.jobgenerator
Class GeneratorRun

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Run<P,R>
              extended by hudson.model.AbstractBuild<P,B>
                  extended by hudson.model.Build<JobGenerator,GeneratorRun>
                      extended by org.jenkinsci.plugins.jobgenerator.GeneratorRun
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DescriptorByNameOwner, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Queue.Executable, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, Comparable<GeneratorRun>, Runnable, jenkins.model.ModelObjectWithContextMenu, jenkins.util.io.OnMaster

public class GeneratorRun
extends hudson.model.Build<JobGenerator,GeneratorRun>

Generates a configured job by copying this job config.xml and replacing generator parameters with values provided by the user at build time.

Author:
Sylvain Benner

Nested Class Summary
protected  class GeneratorRun.GeneratorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.Build
hudson.model.Build.BuildExecution, hudson.model.Build.RunnerImpl
 
Nested classes/interfaces inherited from class hudson.model.AbstractBuild
hudson.model.AbstractBuild.AbstractBuildExecution, hudson.model.AbstractBuild.AbstractRunner, hudson.model.AbstractBuild.DependencyChange
 
Nested classes/interfaces inherited from class hudson.model.Run
hudson.model.Run.Artifact, hudson.model.Run.ArtifactList, hudson.model.Run.KeepLogBuildBadge, hudson.model.Run.RedirectUp, hudson.model.Run.RunExecution, hudson.model.Run.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem
 
Field Summary
 
Fields inherited from class hudson.model.AbstractBuild
buildEnvironments
 
Fields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, number, ORDER_BY_DATE, PERMISSIONS, project, result, state, timestamp, TREE_CUTOFF, UPDATE, XSTREAM, XSTREAM2
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
GeneratorRun(JobGenerator job)
           
GeneratorRun(JobGenerator job, File buildDir)
           
 
Method Summary
static boolean allParametersAreResolved(org.dom4j.Element root)
           
static String expand(String s, List<hudson.model.ParametersAction> params)
           
static String getExpandedJobName(JobGenerator p, List<hudson.model.ParametersAction> params)
           
 JobGenerator getJobGenerator()
           
 String id(hudson.model.Run run)
           
 void run()
           
 
Methods inherited from class hudson.model.Build
createRunner
 
Methods inherited from class hudson.model.AbstractBuild
delete, doStop, doStop, due, getAggregatedTestResultAction, getBuildFingerprints, getBuildVariableResolver, getBuildVariables, getBuiltOn, getBuiltOnStr, getChangeSet, getCulprits, getDependencyChanges, getDownstreamBuilds, getDownstreamBuilds, getDownstreamRelationship, getEnvironment, getEnvironments, getHudsonVersion, getModuleRoot, getModuleRoots, getNextBuild, getPersistentActions, getPreviousBuild, getProject, getRootBuild, getSensitiveBuildVariables, getTestResultAction, getTransitiveUpstreamBuilds, getUpstreamBuilds, getUpstreamRelationship, getUpstreamRelationshipBuild, getUpUrl, getWhyKeepLog, getWorkspace, hasChangeSetComputed, hasParticipant, setBuiltOnStr, setWorkspace
 
Methods inherited from class hudson.model.Run
_this, addAction, checkPermission, compareTo, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, execute, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDisplayName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getId, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNumber, getOneOffExecutor, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTransientActions, getTruncatedDescription, getUrl, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, reload, run, save, setDescription, setDisplayName, setResult, submit, toString, writeLogTo, writeWholeLogTo
 
Methods inherited from class hudson.model.Actionable
doContextMenu, getAction, getAction, getActions, getActions
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hudson.model.Queue.Executable
getEstimatedDuration, toString
 

Constructor Detail

GeneratorRun

public GeneratorRun(JobGenerator job,
                    File buildDir)
             throws IOException
Throws:
IOException

GeneratorRun

public GeneratorRun(JobGenerator job)
             throws IOException
Throws:
IOException
Method Detail

getJobGenerator

public JobGenerator getJobGenerator()

expand

public static String expand(String s,
                            List<hudson.model.ParametersAction> params)

getExpandedJobName

public static String getExpandedJobName(JobGenerator p,
                                        List<hudson.model.ParametersAction> params)

allParametersAreResolved

public static boolean allParametersAreResolved(org.dom4j.Element root)

id

public String id(hudson.model.Run run)
          throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

run

public void run()
Specified by:
run in interface hudson.model.Queue.Executable
Specified by:
run in interface Runnable
Overrides:
run in class hudson.model.Build<JobGenerator,GeneratorRun>


Copyright © 2004-2012. All Rights Reserved.