public final class RunWrapper extends Object implements Serializable
Whitelisted
access to selected attributes of a Run
without requiring Jenkins API imports.Constructor and Description |
---|
RunWrapper(hudson.model.Run<?,?> build,
boolean currentBuild) |
Modifier and Type | Method and Description |
---|---|
String |
getAbsoluteUrl() |
Map<String,String> |
getBuildVariables() |
List<hudson.scm.ChangeLogSet<? extends hudson.scm.ChangeLogSet.Entry>> |
getChangeSets() |
String |
getCurrentResult() |
String |
getDescription() |
String |
getDisplayName() |
long |
getDuration() |
String |
getDurationString() |
String |
getFullDisplayName() |
String |
getFullProjectName() |
String |
getId() |
RunWrapper |
getNextBuild() |
int |
getNumber() |
RunWrapper |
getPreviousBuild() |
String |
getProjectName() |
hudson.model.Run<?,?> |
getRawBuild()
Raw access to the internal build object.
|
String |
getResult() |
long |
getStartTimeInMillis() |
long |
getTimeInMillis() |
List<RunWrapper> |
getUpstreamBuilds() |
boolean |
isKeepLog() |
boolean |
resultIsBetterOrEqualTo(String other) |
boolean |
resultIsWorseOrEqualTo(String other) |
void |
setDescription(String d) |
void |
setDisplayName(String n) |
void |
setKeepLog(boolean b) |
void |
setResult(String result) |
@CheckForNull public hudson.model.Run<?,?> getRawBuild()
Whitelisted
.
The result is also not cached, since we want to stop allowing access to a build after it has been deleted.public void setResult(String result) throws hudson.AbortException
hudson.AbortException
public void setDescription(String d) throws IOException
IOException
public void setDisplayName(String n) throws IOException
IOException
public void setKeepLog(boolean b) throws IOException
IOException
public int getNumber() throws hudson.AbortException
hudson.AbortException
@CheckForNull public String getResult() throws hudson.AbortException
hudson.AbortException
@Nonnull public String getCurrentResult() throws hudson.AbortException
hudson.AbortException
public boolean resultIsBetterOrEqualTo(String other) throws hudson.AbortException
hudson.AbortException
public boolean resultIsWorseOrEqualTo(String other) throws hudson.AbortException
hudson.AbortException
public long getTimeInMillis() throws hudson.AbortException
hudson.AbortException
public long getStartTimeInMillis() throws hudson.AbortException
hudson.AbortException
public long getDuration() throws hudson.AbortException
hudson.AbortException
public String getDurationString() throws hudson.AbortException
hudson.AbortException
public String getDescription() throws hudson.AbortException
hudson.AbortException
public String getDisplayName() throws hudson.AbortException
hudson.AbortException
public String getFullDisplayName() throws hudson.AbortException
hudson.AbortException
public boolean isKeepLog() throws hudson.AbortException
hudson.AbortException
public String getProjectName() throws hudson.AbortException
hudson.AbortException
public String getFullProjectName() throws hudson.AbortException
hudson.AbortException
@CheckForNull public RunWrapper getPreviousBuild() throws hudson.AbortException
hudson.AbortException
@CheckForNull public RunWrapper getNextBuild() throws hudson.AbortException
hudson.AbortException
public String getId() throws hudson.AbortException
hudson.AbortException
@Nonnull public Map<String,String> getBuildVariables() throws hudson.AbortException
hudson.AbortException
@Nonnull public List<RunWrapper> getUpstreamBuilds() throws hudson.AbortException
hudson.AbortException
@Nonnull public String getAbsoluteUrl() throws hudson.AbortException
hudson.AbortException
Copyright © 2016–2018. All rights reserved.