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, java.lang.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 java.text.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, java.io.File archiveDir)
           
 
Method Summary
 java.lang.String _getStatusUrl(JPRT.shared.transported.StateID state)
          Helper code used in view to turn StateID into the appropriate color ball icon.
 java.net.URL getBuildLogURL(JPRT.shared.transported.status.BuildTargetStatus status)
          Computes the log file URL of the given BuildTargetStatus.
 java.lang.String getDisplayName()
           
 java.lang.String getId()
          Returns the Job ID in the JPRT sense.
 JPRT.shared.transported.status.JobStatus getStatus()
          Gets the JPRT Job status.
 java.lang.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 java.text.SimpleDateFormat TIME_FORMATTER
Constructor Detail

JPRTRun

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

getId

public java.lang.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 java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.model.Run<JPRTJob,JPRTRun>

getUrl

public java.lang.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 java.lang.String _getStatusUrl(JPRT.shared.transported.StateID state)
Helper code used in view to turn StateID into the appropriate color ball icon.


getBuildLogURL

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

Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.