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".
    • setJenkinsVersionMeta

      @DataBoundSetter public void setJenkinsVersionMeta​(String metadata)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      metadata - - if true, will set metadata flag on getversion call to Jenkins.
    • setCustomVersionMeta

      @DataBoundSetter public void setCustomVersionMeta​(String customMetadata)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      customMetadata - - Sets custom version metadata and will override useJenkinsVersionMeta.
    • setCustomVersionModifier

      @DataBoundSetter public void setCustomVersionModifier​(String modifier)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      modifier - - will set modifier flag on getversion call
    • setOnlyVersion

      @DataBoundSetter public void setOnlyVersion​(String onlyVersion)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      onlyVersion - - Flag to skip creation of the release.
    • setGetVersion

      @DataBoundSetter public void setGetVersion​(String getVersion)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      getVersion - - Flag to determine whether version information will be gotten from Reliza Hub or not.
    • setEnvSuffix

      @DataBoundSetter public void setEnvSuffix​(String envSuffix)
      Sets up optional parameters from buildwrapper initialization.
      Parameters:
      envSuffix - - Flag which adds a suffix to all environment variables to differentiate from other addRelizaRelease calls.
    • 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