Class 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.
  • Constructor Details

    • RelizaBuildWrapper

      @DataBoundConstructor public RelizaBuildWrapper()
      Buildwrapper initialization with no required parameters.
  • Method Details

    • setProjectId

      @DataBoundSetter public void setProjectId​(String projectId)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      projectId - - Project UUID obtainable from reliza hub.
    • setUri

      @DataBoundSetter public void setUri​(String uri)
      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, InterruptedException

      Retrieves preset credentials and parameters to perform getVersion api call and then sets received information as environment variables to pass to subsequent addRelease call.

      Overrides:
      setUp in class SimpleBuildWrapper
      Throws:
      IOException
      InterruptedException
    • UUID

      public static UUID UUID​(String projectId, TaskListener listener)
      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.