Uses of Class
hudson.model.Run
Package
Description
Server-side CLI commands for Hudson.
Beef up the plain text console output by adding HTML markup.
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Listener interfaces for various events that occur inside the server.
Jenkins's interface with source code management systems.
Built-in
Trigger
s that run periodically to kick a new build.Other miscellaneous utility code
-
Uses of Run in hudson
Modifier and TypeMethodDescriptionvoid
Launcher.prepareFilterRules
(Run<?, ?> run, EnvVarsFilterableBuilder builder) Build the environment filter rules that will be applied on the environment variables -
Uses of Run in hudson.cli
-
Uses of Run in hudson.console
Modifier and TypeMethodDescriptionConsoleLogFilter.decorateLogger
(Run build, OutputStream logger) Called on the start of each build, giving extensions a chance to intercept the data that is written to the log.static String
-
Uses of Run in hudson.diagnosis
-
Uses of Run in hudson.model
Modifier and TypeClassDescriptionclass
A job is an runnable entity under the monitoring of Hudson.class
A particular execution ofJob
.final class
static interface
RunMap.Constructor<R extends Run<?,
R>> Run
factory.class
Job
that monitors activities that happen outside Hudson, which requires occasional batch reload activity to obtain the up-to-date information.Modifier and TypeClassDescriptionclass
AbstractBuild<P extends AbstractProject<P,
R>, R extends AbstractBuild<P, R>> Base implementation ofRun
s that build software.class
A build of aProject
.class
Modifier and TypeFieldDescriptionprotected RunT
Run.nextBuild
Next build.protected RunT
Run.previousBuild
Previous build.Modifier and TypeFieldDescriptionstatic final FeedAdapter<Run>
Run.FEED_ADAPTER
FeedAdapter
to produce feed from the summary of this build.static final FeedAdapter<Run>
FeedAdapter
to produce feeds to show one build per project.static final Comparator<Run>
Run.ORDER_BY_DATE
Sort by date.Modifier and TypeMethodDescriptionstatic Run<?,
?> Run.fromExternalizableId
(String id) Tries to find a run from an persisted identifier.Run<?,
?> BuildTimelineWidget.getFirstBuild()
Deprecated.Run<?,
?> BuildTimelineWidget.getLastBuild()
Deprecated.Fingerprint.BuildPtr.getRun()
Gets theJob
that this pointer points to, or null if such a job no longer exists.RunParameterValue.getRun()
Can be null if theRun
that this was pointing to no longer exists.Run<?,
?> Cause.UpstreamCause.getUpstreamRun()
RunParameterValue.getValue()
abstract Run<?,
?> Resolves the permalink to a build.Modifier and TypeMethodDescriptionvoid
Adds a usage reference to the build.void
BooleanParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.default void
EnvironmentContributingAction.buildEnvironment
(Run<?, ?> run, EnvVars env) Called byRun
to allow plugins to contribute environment variables.void
FileParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the originalFileName as an environment variable.void
ParametersAction.buildEnvironment
(Run<?, ?> run, EnvVars env) void
ParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Adds environmental variables for the builds to the given map.void
PasswordParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) void
RunParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.void
StringParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.void
EnvironmentContributor.buildEnvironmentFor
(Run r, EnvVars envs, TaskListener listener) Contributes environment variables used for a build.Collection<? extends Action>
Deprecated.Creates actions for the given build.FingerprintMap.getOrCreate
(Run build, String fileName, String md5sum) static ResultTrend
ResultTrend.getResultTrend
(Run<?, ?> run) Returns the result trend of a run.boolean
Returns true ifFingerprint.BuildPtr
points to the given run.void
Called when the cause is registered.void
CauseAction.onAttached
(Run<?, ?> owner) When hooked up to build, notifyCause
s.void
ParametersAction.onAttached
(Run<?, ?> r) void
RunAction.onAttached
(Run r) Deprecated.Called when the action is added to theRun
object.void
Called when a build is loaded from disk.void
void
boolean
Returns true if this cause points to the specified build.void
Executor.recordCauseOfInterruption
(Run<?, ?> build, TaskListener listener) report cause of interruption and record it to the build, if available.abstract Run.Summary
Run.StatusSummarizer.summarize
(Run<?, ?> run, ResultTrend trend) Possibly summarizes the reasons for a build’s status.Modifier and TypeMethodDescriptionstatic void
RSS.rss
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String title, String url, RunList runList, FeedAdapter<Run> feedAdapter) Sends the RSS feed to the client using a specific feed adapter.static void
RSS.rss
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String title, String url, RunList runList, FeedAdapter<Run> feedAdapter) Deprecated.ModifierConstructorDescriptionFingerprint
(Run build, String fileName, byte[] md5sum) UpstreamCause
(Run<?, ?> up) -
Uses of Run in hudson.model.listeners
Modifier and TypeClassDescriptionclass
RunListener<R extends Run>
Receives notifications about builds.Modifier and TypeMethodDescriptionstatic void
RunListener.fireCompleted
(Run r, TaskListener listener) Fires theRunListener.onCompleted(Run, TaskListener)
event.static void
RunListener.fireDeleted
(Run r) Fires theRunListener.onDeleted(R)
event.static void
RunListener.fireFinalized
(Run r) Fires theRunListener.onFinalized(Run)
event.static void
RunListener.fireInitialize
(Run r) Fires theRunListener.onInitialize(Run)
event.static void
RunListener.fireStarted
(Run r, TaskListener listener) Fires theRunListener.onStarted(Run, TaskListener)
event.void
SCMListener.onChangeLogParsed
(Run<?, ?> build, SCM scm, TaskListener listener, ChangeLogSet<?> changelog) Called once the changelog is determined.void
SCMListener.onCheckout
(Run<?, ?> build, SCM scm, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState pollingBaseline) Should be called immediately afterSCM.checkout(Run, Launcher, FilePath, TaskListener, File, SCMRevisionState)
is called. -
Uses of Run in hudson.scm
Modifier and TypeMethodDescriptionRun<?,
?> AbstractScmTagAction.getRun()
Run<?,
?> ChangeLogSet.getRun()
Modifier and TypeMethodDescriptionvoid
ChangeLogAnnotator.annotate
(Run<?, ?> build, ChangeLogSet.Entry change, MarkupText text) Called by Hudson to allow markups to be added to the changelog text.void
SCM.buildEnvironment
(Run<?, ?> build, Map<String, String> env) Adds environmental variables for the builds to the given map.NullSCM.calcRevisionsFromBuild
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) SCM.calcRevisionsFromBuild
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Calculates theSCMRevisionState
that represents the state of the workspace of the given build.void
NullSCM.checkout
(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) void
SCM.checkout
(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) Obtains a fresh workspace of the module(s) into the specified directory of the specified machine.static ChangeLogSet<? extends ChangeLogSet.Entry>
ChangeLogSet.createEmpty
(Run build) Constant instance that represents no changes.void
AbstractScmTagAction.onAttached
(Run<?, ?> r) void
ChangeLogSet<? extends ChangeLogSet.Entry>
ChangeLogParser.parse
(Run build, RepositoryBrowser<?> browser, File changelogFile) ChangeLogSet<? extends ChangeLogSet.Entry>
NullChangeLogParser.parse
(Run build, RepositoryBrowser<?> browser, File changelogFile) void
SCM.postCheckout
(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener) Get a chance to do operations after the workspace i checked out and the changelog is written.ModifierConstructorDescriptionprotected
AbstractScmTagAction
(Run<?, ?> run) protected
ChangeLogSet
(Run<?, ?> run, RepositoryBrowser<?> browser) -
Uses of Run in hudson.tasks
Modifier and TypeMethodDescriptionvoid
Fingerprinter.FingerprintAction.onAttached
(Run<?, ?> r) void
void
ArtifactArchiver.perform
(Run<?, ?> build, FilePath ws, EnvVars environment, Launcher launcher, TaskListener listener) void
Fingerprinter.perform
(Run<?, ?> build, FilePath workspace, EnvVars environment, Launcher launcher, TaskListener listener) -
Uses of Run in hudson.triggers
Modifier and TypeMethodDescriptionRun<?,
?> SCMTrigger.BuildAction.getRun()
SCMTrigger.SCMTriggerCause.getRun()
Modifier and TypeMethodDescriptionvoid
void
SCMTrigger.BuildAction.onAttached
(Run<?, ?> r) void
void
-
Uses of Run in hudson.util
Modifier and TypeClassDescriptionclass
Modifier and TypeMethodDescriptionCreates a aRunList
combining all the runs of the supplied jobs.RunList.fromRuns
(Collection<? extends R> runs) -
Uses of Run in jenkins.console
Modifier and TypeMethodDescriptionstatic String
ConsoleUrlProvider.consoleUrlOf
(Run<?, ?> run) Looks up theConsoleUrlProvider.getConsoleUrl(hudson.model.Run<?, ?>)
value from the first provider to offer one.ConsoleUrlProvider.getConsoleUrl
(Run<?, ?> run) Get a URL relative to the context path of Jenkins which should be used to link to the console for the specified build.DefaultConsoleUrlProvider.getConsoleUrl
(Run<?, ?> run) static String
ConsoleUrlProvider.getRedirectUrl
(Run<?, ?> run) Get a URL relative to the web server root which should be used to link to the console for the specified build. -
Uses of Run in jenkins.model
Modifier and TypeClassDescriptionclass
ParameterizedJobMixIn<JobT extends Job<JobT,
RunT> & ParameterizedJobMixIn.ParameterizedJob<JobT, RunT> & Queue.Task, RunT extends Run<JobT, RunT> & Queue.Executable> Allows aJob
to make use ofParametersDefinitionProperty
and be scheduled in various ways.static interface
ParameterizedJobMixIn.ParameterizedJob<JobT extends Job<JobT,
RunT> & ParameterizedJobMixIn.ParameterizedJob<JobT, RunT> & Queue.Task, RunT extends Run<JobT, RunT> & Queue.Executable> Marker for job using this mixin, and default implementations of many methods.Modifier and TypeMethodDescriptionRun<?,
?> PeepholePermalink.Cache.None.resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Run<?,
?> PeepholePermalink.Cache.PermalinkTarget.resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Implementation ofPeepholePermalink.resolve(Job)
.Run<?,
?> PeepholePermalink.Cache.Some.resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Run<?,
?> PeepholePermalink.Cache.Unknown.resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Run<?,
?> Resolves the permalink by using the cache if possible.default Run<?,
?> PeepholePermalink.Cache.PermalinkTarget.search
(PeepholePermalink pp, Job<?, ?> job, String id, Run<?, ?> b) Partial implementation ofPeepholePermalink.Cache.PermalinkTarget.resolve(PeepholePermalink, Job, String)
when searching.Modifier and TypeMethodDescriptionvoid
Applies this build discarder strategy to the given run, i.e.abstract boolean
Checks if the given build satisfies the peep-hole criteria.void
CoreEnvironmentContributor.buildEnvironmentFor
(Run r, EnvVars env, TaskListener listener) abstract ArtifactManager
ArtifactManagerFactory.managerFor
(Run<?, ?> build) Optionally creates a manager for a particular build.void
RunAction2.onAttached
(Run<?, ?> r) Called when this action is added to a build.void
PeepholePermalink.RunListenerImpl.onCompleted
(Run<?, ?> run, TaskListener listener) See if the new build matches any of the peephole permalink.void
If any of the peephole permalink points to the build to be deleted, update it to point to the new location.void
GlobalBuildDiscarderListener.onFinalized
(Run run) abstract void
Called when this manager is loaded from disk.void
Called after a build is loaded to which this action was previously attached.final void
default Run<?,
?> PeepholePermalink.Cache.PermalinkTarget.search
(PeepholePermalink pp, Job<?, ?> job, String id, Run<?, ?> b) Partial implementation ofPeepholePermalink.Cache.PermalinkTarget.resolve(PeepholePermalink, Job, String)
when searching.boolean
protected void
PeepholePermalink.updateCache
(Job<?, ?> job, Run<?, ?> b) Remembers the value 'n' in the cache for futurePeepholePermalink.resolve(Job)
.Modifier and TypeMethodDescriptionvoid
Applies this build discarder strategy to the given job, i.e.ModifierConstructorDescriptionBlockedBecauseOfBuildInProgress
(Run<?, ?> build) Creates a cause for the specified build.StandardArtifactManager
(Run<?, ?> build) -
Uses of Run in jenkins.model.lazy
Modifier and TypeClassDescriptionclass
LazyBuildMixIn<JobT extends Job<JobT,
RunT> & Queue.Task & LazyBuildMixIn.LazyLoadingJob<JobT, RunT>, RunT extends Run<JobT, RunT> & LazyBuildMixIn.LazyLoadingRun<JobT, RunT>> static interface
LazyBuildMixIn.LazyLoadingJob<JobT extends Job<JobT,
RunT> & Queue.Task & LazyBuildMixIn.LazyLoadingJob<JobT, RunT>, RunT extends Run<JobT, RunT> & LazyBuildMixIn.LazyLoadingRun<JobT, RunT>> Marker for aJob
which uses this mixin.static interface
LazyBuildMixIn.LazyLoadingRun<JobT extends Job<JobT,
RunT> & Queue.Task & LazyBuildMixIn.LazyLoadingJob<JobT, RunT>, RunT extends Run<JobT, RunT> & LazyBuildMixIn.LazyLoadingRun<JobT, RunT>> Marker for aRun
which uses this mixin.static class
LazyBuildMixIn.RunMixIn<JobT extends Job<JobT,
RunT> & Queue.Task & LazyBuildMixIn.LazyLoadingJob<JobT, RunT>, RunT extends Run<JobT, RunT> & LazyBuildMixIn.LazyLoadingRun<JobT, RunT>> Accompanying helper for the run type. -
Uses of Run in jenkins.scm
Modifier and TypeInterfaceDescriptioninterface
RunWithSCM<JobT extends Job<JobT,
RunT>, RunT extends Run<JobT, RunT> & RunWithSCM<JobT, RunT>> -
Uses of Run in jenkins.tasks
Modifier and TypeMethodDescriptionSimpleBuildWrapper.createLoggerDecorator
(Run<?, ?> build) Allows this wrapper to decorate log output.default void
SimpleBuildStep.perform
(Run<?, ?> run, EnvVars env, TaskListener listener) Run this step, without a workspace context.default void
SimpleBuildStep.perform
(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) Run this step.default void
SimpleBuildStep.perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Deprecated.void
SimpleBuildWrapper.setUp
(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) Called when a segment of a build is started that is to be enhanced with this wrapper.void
SimpleBuildWrapper.setUp
(SimpleBuildWrapper.Context context, Run<?, ?> build, TaskListener listener, EnvVars initialEnvironment) Called when a segment of a build is started that is to be enhanced with this wrapper.void
SimpleBuildWrapper.Disposer.tearDown
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Attempt to clean up anything that was done in the initial setup.void
SimpleBuildWrapper.Disposer.tearDown
(Run<?, ?> build, TaskListener listener) Attempt to clean up anything that was done in the initial setup. -
Uses of Run in jenkins.tasks.filters
Modifier and TypeMethodDescriptionstatic EnvVarsFilterRuleWrapper
EnvVarsFilterRuleWrapper.createRuleWrapper
(Run<?, ?> run, Object builder, Launcher launcher, List<EnvVarsFilterLocalRule> localRules) boolean
EnvVarsFilterGlobalRule.isApplicable
(Run<?, ?> run, Object builder, Launcher launcher) -
Uses of Run in jenkins.triggers
Modifier and TypeMethodDescriptionvoid
ReverseBuildTrigger.RunListenerImpl.onCompleted
(Run r, TaskListener listener) -
Uses of Run in jenkins.widgets
Modifier and TypeMethodDescriptionprotected void
protected void
protected abstract void
RSS.rss(StaplerRequest2, StaplerResponse2, String, String, RunList, FeedAdapter)