public class BuildEnvironmentBuildAction
extends hudson.model.Actionable
implements hudson.model.Action
Constructor and Description |
---|
BuildEnvironmentBuildAction(hudson.model.Run<?,?> build)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Method to populate values and implement functionality of a HTML form.
|
hudson.model.AbstractProject<?,?> |
getAbstractProject()
Returns the parent of this build.
|
String |
getBackgroundColor(boolean change)
Return the background color according to a boolean value.
|
hudson.model.AbstractBuild<?,?> |
getBuild()
Return the current build.
|
hudson.model.AbstractBuild<?,?> |
getBuild1()
Passes the build1 Attribute.
|
hudson.model.AbstractBuild<?,?> |
getBuild2()
Passes the build2 Attribute.
|
hudson.util.RunList<?> |
getBuilds()
Returns all build for the current project.
|
List<hudson.model.AbstractBuild<?,?>> |
getBuildsWithAction()
Returns all build for the current project that have this Action listed.
|
List<Data> |
getDataHoldersList()
Returns the list with Data objects.
|
List<DataDifferenceObject> |
getDifference()
Returns a list with DataDifferenceObjects representing the difference
between build1 nad build2 set for this Action.
|
int |
getDifferentCount(Data data)
Returns the number of different entries between Data object for this
build and a given Data object.
|
String |
getDisplayName()
Display name for this Action.
|
ArrayList<String> |
getEnvironmentVariablesForExport()
Returns all environment variables defined in this build as a list, ready
to be exportedin bash for example.
|
String |
getIconFileName()
Icon file for this Action.
|
hudson.model.Job<?,?> |
getProject()
Returns the parent of this build.
|
String |
getSearchUrl()
Search url for this Acion.
|
String |
getSummaryIconFilename()
Summary icon file for this Action.
|
String |
getUrlName()
Url for this Action.
|
boolean |
isDifferentFromPrevious(Data data,
String key)
Checks if a given entry in a given Data object is different from what has
been recorded in the previous build.
|
boolean |
isOnlyDifference()
Passes the value of diffOption.
|
String |
trueFalseToYesNo(boolean value)
Converts true/false -> yes/no.
|
addAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, replaceAction
public BuildEnvironmentBuildAction(hudson.model.Run<?,?> build)
build
- build for which the action is constructed.public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getSummaryIconFilename()
public String getUrlName()
getUrlName
in interface hudson.model.Action
public String getSearchUrl()
getSearchUrl
in interface hudson.search.SearchItem
public List<Data> getDataHoldersList()
public String trueFalseToYesNo(boolean value)
value
- boolean to be converted.public List<hudson.model.AbstractBuild<?,?>> getBuildsWithAction()
public ArrayList<String> getEnvironmentVariablesForExport()
public hudson.util.RunList<?> getBuilds()
public hudson.model.AbstractBuild<?,?> getBuild()
public hudson.model.Job<?,?> getProject()
public hudson.model.AbstractProject<?,?> getAbstractProject()
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
req
- the Requestrsp
- the ResponseIOException
- read problemjavax.servlet.ServletException
- servlet problempublic boolean isOnlyDifference()
public hudson.model.AbstractBuild<?,?> getBuild1()
public hudson.model.AbstractBuild<?,?> getBuild2()
public String getBackgroundColor(boolean change)
change
- the boolean value indicating if there was a change is an
entry.public int getDifferentCount(Data data)
data
- the Data object.public boolean isDifferentFromPrevious(Data data, String key)
data
- the Data object.key
- the key Object.public List<DataDifferenceObject> getDifference()
Copyright © 2004–2019. All rights reserved.