Package io.reliza.plugins.reliza
Class RelizaBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.reliza.plugins.reliza.RelizaBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
public class RelizaBuilder extends Builder implements SimpleBuildStep
Uses the addRelease method from reliza library within the reliza wrapper to send release details to reliza hub.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelizaBuilder.DescriptorImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors Constructor Description RelizaBuilder()Builder initialization with no required parameters. -
Method Summary
Modifier and Type Method Description voidperform(Run<?,?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener)Extracts project details from environment variables to send release metadata to reliza hub.voidsetArtId(String artId)Optional parameters for builder initialization.Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
RelizaBuilder
@DataBoundConstructor public RelizaBuilder()Builder initialization with no required parameters.
-
-
Method Details
-
setArtId
Optional parameters for builder initialization.- Parameters:
artId- - Id of created artifact, required only if building an artifact.
-
perform
public void perform(Run<?,?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener) throws InterruptedException, IOExceptionExtracts project details from environment variables to send release metadata to reliza hub.- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-