Package io.reliza.plugins.reliza
Class RelizaBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
jenkins.tasks.SimpleBuildWrapper
io.reliza.plugins.reliza.RelizaBuildWrapper
- All Implemented Interfaces:
ExtensionPoint,Describable<BuildWrapper>
public class RelizaBuildWrapper extends SimpleBuildWrapper
An extension of
SimpleBuildWrapper which sets up the reliza wrapper to perform api calls to reliza hub.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelizaBuildWrapper.DescriptorImplNested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.DisposerNested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.EnvironmentNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors Constructor Description RelizaBuildWrapper()Buildwrapper initialization with no required parameters. -
Method Summary
Modifier and Type Method Description voidsetProjectId(String projectId)Sets up optional parameters from buildwrapper initialization.voidsetUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment)voidsetUri(String uri)Sets up optional parameters from buildwrapper initialization.static UUIDUUID(String projectId, TaskListener listener)String to UUID converter which handles conversion errors.Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUpMethods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUpMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
RelizaBuildWrapper
@DataBoundConstructor public RelizaBuildWrapper()Buildwrapper initialization with no required parameters.
-
-
Method Details
-
setProjectId
Sets up optional parameters from buildwrapper initialization.- Parameters:
projectId- - Project UUID obtainable from reliza hub.
-
setUri
Sets up optional parameters from buildwrapper initialization.- Parameters:
uri- - Base uri of api call, default set to "https://app.relizahub.com".
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedExceptionRetrieves preset credentials and parameters to perform getVersion api call and then sets received information as environment variables to pass to subsequent addRelease call.
- Overrides:
setUpin classSimpleBuildWrapper- Throws:
IOExceptionInterruptedException
-
UUID
String to UUID converter which handles conversion errors.- Parameters:
projectId- - Project UUID.listener- - TaskListener to log specific error.- Returns:
- Corresponding UUID if conversion succeeded and null otherwise.
-