public class RelizaBuilder extends Builder implements SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
RelizaBuilder.DescriptorImpl |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonBUILDERS, PUBLISHERS| Constructor and Description |
|---|
RelizaBuilder()
Builder initialization with no required parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
perform(Run<?,?> run,
FilePath workspace,
EnvVars envVars,
Launcher launcher,
TaskListener listener)
Extracts project details from environment variables to send release metadata to reliza hub.
|
static String |
resolveEnvVar(String envVar,
String suffix,
EnvVars envVars)
Obtains env variable with envSuffix if it exists, otherwise obtains env variable without envSuffix.
|
void |
setArtId(String artId)
Optional parameter for builder initialization.
|
void |
setArtType(String artType)
Optional parameter for builder initialization.
|
void |
setEnvSuffix(String envSuffix)
Sets up optional parameters from buildwrapper initialization.
|
void |
setProjectId(String projectId)
Optional parameter for builder initialization.
|
void |
setStatus(String status)
Optional parameter for builder initialization.
|
void |
setUri(String uri)
Optional parameter for builder initialization.
|
void |
setUseCommitList(String useCommitList)
Sets up optional parameters from buildwrapper initialization.
|
void |
setVersion(String version)
Optional parameter for builder initialization.
|
static UUID |
toUUID(String projectId,
TaskListener listener)
String to UUID converter which handles conversion errors.
|
all, getDescriptor, getRequiredMonitorService, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperform, perform, requiresWorkspacegetProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild@DataBoundConstructor public RelizaBuilder()
@DataBoundSetter public void setStatus(String status)
status - - Used to override given status if needed.@DataBoundSetter public void setArtId(String artId)
artId - - Id of created artifact, required only if building an artifact.@DataBoundSetter public void setArtType(String artType)
artType - - Type of created artifact.@DataBoundSetter public void setVersion(String version)
version - - Custom version of release to create, required if not using withReliza wrapper.@DataBoundSetter public void setProjectId(String projectId)
projectId - - UUID of project, only used when supplying custom version.@DataBoundSetter public void setUri(String uri)
uri - - Base uri of api call, only used when supplying custom version. Default set to "https://app.relizahub.com".@DataBoundSetter public void setUseCommitList(String useCommitList)
useCommitList - - Flag which allows commit information from commit list to be prioritized over other commit parameters@DataBoundSetter public void setEnvSuffix(String envSuffix)
envSuffix - - Flag which adds a suffix to all environment variables to differentiate from other withReliza calls.public void perform(Run<?,?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
perform in interface SimpleBuildStepInterruptedExceptionIOExceptionpublic static UUID toUUID(String projectId, TaskListener listener)
projectId - - Project UUID.listener - - TaskListener to log specific error.public static String resolveEnvVar(String envVar, String suffix, EnvVars envVars)
envVar - - Key to resolve to a value using environment variablessuffix - - Search for environment variables with this suffixenvVars - - Map of all environment variables to search throughCopyright © 2016–2022. All rights reserved.