public class VersionNumberBuilder
extends hudson.tasks.BuildWrapper
Builder.
This build wrapper makes an environment variable with a version number available to the build. For more information on how the format stream works, see the Version Number Plugin wiki page.
This plugin keeps track of its version through a VersionNumberAction attached
to the project. Each build that uses this plugin has its own VersionNumberAction,
and this contains the builds today/this month/ this year/ all time. When incrementing
each of these values, unless they're overridden in the configuration the value from
the previous build will be used.
| Modifier and Type | Class and Description |
|---|---|
static class |
VersionNumberBuilder.DescriptorImpl
Descriptor for
VersionNumberBuilder. |
| Modifier and Type | Field and Description |
|---|---|
static VersionNumberBuilder.DescriptorImpl |
DESCRIPTOR |
| Constructor and Description |
|---|
VersionNumberBuilder(String versionNumberString,
String projectStartDate,
String environmentVariableName,
String environmentPrefixVariable,
String buildsToday,
String buildsThisMonth,
String buildsThisYear,
String buildsAllTime,
boolean skipFailedBuilds) |
VersionNumberBuilder(String versionNumberString,
String projectStartDate,
String environmentVariableName,
String environmentPrefixVariable,
String buildsToday,
String buildsThisMonth,
String buildsThisYear,
String buildsAllTime,
boolean skipFailedBuilds,
boolean useAsBuildDisplayName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBuildsAllTime() |
String |
getBuildsThisMonth() |
String |
getBuildsThisYear() |
String |
getBuildsToday() |
hudson.tasks.BuildWrapperDescriptor |
getDescriptor() |
String |
getEnvironmentPrefixVariable() |
String |
getEnvironmentVariableName() |
String |
getProjectStartDate() |
boolean |
getSkipFailedBuilds() |
boolean |
getUseAsBuildDisplayName() |
String |
getVersionNumberString()
We'll use this from the config.jelly.
|
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@Extension public static final VersionNumberBuilder.DescriptorImpl DESCRIPTOR
public VersionNumberBuilder(String versionNumberString, String projectStartDate, String environmentVariableName, String environmentPrefixVariable, String buildsToday, String buildsThisMonth, String buildsThisYear, String buildsAllTime, boolean skipFailedBuilds)
@DataBoundConstructor public VersionNumberBuilder(String versionNumberString, String projectStartDate, String environmentVariableName, String environmentPrefixVariable, String buildsToday, String buildsThisMonth, String buildsThisYear, String buildsAllTime, boolean skipFailedBuilds, boolean useAsBuildDisplayName)
public String getBuildsToday()
public String getBuildsThisMonth()
public String getBuildsThisYear()
public String getBuildsAllTime()
public boolean getSkipFailedBuilds()
public boolean getUseAsBuildDisplayName()
public String getVersionNumberString()
public String getProjectStartDate()
public String getEnvironmentVariableName()
public String getEnvironmentPrefixVariable()
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
setUp in class hudson.tasks.BuildWrapperpublic hudson.tasks.BuildWrapperDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2004-2015. All Rights Reserved.