hudson.plugins.jprt
Class JPRTRun

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.Actionable
          extended by hudson.model.Run<JPRTJob,JPRTRun>
              extended by hudson.plugins.jprt.JPRTRun
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DescriptorByNameOwner, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, Comparable<JPRTRun>

public class JPRTRun
extends hudson.model.Run<JPRTJob,JPRTRun>

Run for JPRTJob.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
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.Runner, hudson.model.Run.RunnerAbortedException, hudson.model.Run.Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
protected static SimpleDateFormat TIME_FORMATTER
           
 
Fields inherited from class hudson.model.Run
ARTIFACTS, charset, DELETE, description, duration, FEED_ADAPTER, FEED_ADAPTER_LATEST, ID_FORMATTER, LIST_CUTOFF, nextBuild, number, ORDER_BY_DATE, PERMISSIONS, previousBuild, project, result, state, timestamp, TREE_CUTOFF, UPDATE, XSTREAM
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
JPRTRun(JPRTJob job, JPRTRun prevBuild, File archiveDir)
           
 
Method Summary
 String _getStatusUrl(JPRT.shared.transported.StateID state)
          Helper code used in view to turn StateID into the appropriate color ball icon.
 URL getBuildLogURL(JPRT.shared.transported.status.BuildTargetStatus status)
          Computes the log file URL of the given BuildTargetStatus.
 String getDisplayName()
           
 String getId()
          Returns the Job ID in the JPRT sense.
 JPRT.shared.transported.status.JobStatus getStatus()
          Gets the JPRT Job status.
 String getUrl()
          Use the JPRT ID as the URL.
 
Methods inherited from class hudson.model.Run
addAction, checkPermission, compareTo, delete, deleteArtifacts, doArtifact, doBuildNumber, doBuildStatus, doBuildTimestamp, doConfigSubmit, doConsoleText, doDoDelete, doProgressiveLog, doSubmitDescription, doToggleLogKeep, fromExternalizableId, getAbsoluteUrl, getACL, getApi, getArtifacts, getArtifactsDir, getArtifactsUpTo, getBadgeActions, getBuildStatusSummary, getBuildStatusUrl, getCause, getCauses, getCharacteristicEnvVars, getCharset, getDescription, getDescriptorByName, getDuration, getDurationString, getDynamic, getEnvironment, getEnvironment, getEnvVars, getEstimatedDuration, getExecutor, getExternalizableId, getFullDisplayName, getHasArtifacts, getIconColor, getIDFormatter, getLog, getLog, getLogFile, getLogInputStream, getLogReader, getLogText, getNextBuild, getNumber, getParent, getPreviousBuild, getPreviousBuildInProgress, getPreviousBuildsOverThreshold, getPreviousBuiltBuild, getPreviousCompletedBuild, getPreviousFailedBuild, getPreviousNotFailedBuild, getPreviousSuccessfulBuild, getResult, getRootDir, getSearchUrl, getTime, getTimeInMillis, getTimestamp, getTimestampString, getTimestampString2, getTruncatedDescription, getWhyKeepLog, hasCustomDisplayName, hasntStartedYet, hasPermission, isBuilding, isKeepLog, isLogUpdated, keepLog, keepLog, makeSearchIndex, onEndBuilding, onLoad, onStartBuilding, run, save, setDescription, setDisplayName, setResult, submit, toString, writeLogTo
 
Methods inherited from class hudson.model.Actionable
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
 

Field Detail

TIME_FORMATTER

protected static final SimpleDateFormat TIME_FORMATTER
Constructor Detail

JPRTRun

public JPRTRun(JPRTJob job,
               JPRTRun prevBuild,
               File archiveDir)
        throws ParseException
Throws:
ParseException
Method Detail

getId

public String getId()
Returns the Job ID in the JPRT sense. The archive directory name is the job ID.

Overrides:
getId in class hudson.model.Run<JPRTJob,JPRTRun>

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.model.Run<JPRTJob,JPRTRun>

getUrl

public String getUrl()
Use the JPRT ID as the URL.

Overrides:
getUrl in class hudson.model.Run<JPRTJob,JPRTRun>

getStatus

public JPRT.shared.transported.status.JobStatus getStatus()
Gets the JPRT Job status.


_getStatusUrl

public String _getStatusUrl(JPRT.shared.transported.StateID state)
Helper code used in view to turn StateID into the appropriate color ball icon.


getBuildLogURL

public URL getBuildLogURL(JPRT.shared.transported.status.BuildTargetStatus status)
                   throws IOException
Computes the log file URL of the given BuildTargetStatus.

Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.