public class RelizaBuildWrapper extends SimpleBuildWrapper
SimpleBuildWrapper which sets up the reliza wrapper to perform api calls to reliza hub.| Modifier and Type | Class and Description |
|---|---|
static class |
RelizaBuildWrapper.DescriptorImpl |
SimpleBuildWrapper.Context, SimpleBuildWrapper.DisposerBuildWrapper.EnvironmentExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
RelizaBuildWrapper()
Buildwrapper initialization with no required parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCustomVersionMeta(String customMetadata)
Sets up optional parameters from buildwrapper initialization.
|
void |
setCustomVersionModifier(String modifier)
Sets up optional parameters from buildwrapper initialization.
|
void |
setJenkinsVersionMeta(String metadata)
Sets up optional parameters from buildwrapper initialization.
|
void |
setOnlyVersion(String onlyVersion)
Sets up optional parameters from buildwrapper initialization.
|
void |
setProjectId(String projectId)
Sets up optional parameters from buildwrapper initialization.
|
void |
setUp(SimpleBuildWrapper.Context context,
Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener,
EnvVars initialEnvironment) |
void |
setUri(String uri)
Sets up optional parameters from buildwrapper initialization.
|
static UUID |
toUUID(String projectId,
TaskListener listener)
String to UUID converter which handles conversion errors.
|
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUpall, getProjectAction, setUpgetDescriptor@DataBoundConstructor public RelizaBuildWrapper()
@DataBoundSetter public void setProjectId(String projectId)
projectId - - Project UUID obtainable from reliza hub.@DataBoundSetter public void setUri(String uri)
uri - - Base uri of api call, default set to "https://app.relizahub.com".@DataBoundSetter public void setJenkinsVersionMeta(String metadata)
metadata - - if true, will set metadata flag on getversion call to Jenkins.@DataBoundSetter public void setCustomVersionMeta(String customMetadata)
customMetadata - - Sets custom version metadata and will override useJenkinsVersionMeta.@DataBoundSetter public void setCustomVersionModifier(String modifier)
modifier - - will set modifier flag on getversion call@DataBoundSetter public void setOnlyVersion(String onlyVersion)
onlyVersion - - Flag to skip creation of the release.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.
setUp in class SimpleBuildWrapperIOExceptionInterruptedExceptionpublic static UUID toUUID(String projectId, TaskListener listener)
projectId - - Project UUID.listener - - TaskListener to log specific error.Copyright © 2016–2021. All rights reserved.