@Mojo(name="rollback") public class RollbackReleaseMojo extends AbstractForceableMutatingReleaseMojo
Constructor and Description |
---|
RollbackReleaseMojo()
Creates a new
RollbackReleaseMojo . |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Callable<ReleaseManager> releaseManagerCallable)
|
Integer |
getVersion()
Returns the version of the release to roll back to.
|
void |
setVersion(Integer version)
Sets the version of the release to roll back to.
|
getForce, getRecreate, setForce, setRecreate
getDisableHooks, getDryRun, getTimeout, getWait, setDisableHooks, setDryRun, setTimeout, setWait
getReleaseName, setReleaseName, validateReleaseName
createClient, createReleaseManager, createTiller, execute, getClientConfiguration, getSkip, getTillerLabels, getTillerNamespace, getTillerPort, setClientConfiguration, setSkip, setTillerLabels, setTillerNamespace, setTillerPort, validateNamespace
getLog, getPluginContext, setLog, setPluginContext
public RollbackReleaseMojo()
RollbackReleaseMojo
.protected void execute(Callable<ReleaseManager> releaseManagerCallable) throws Exception
ReleaseManager
available from the supplied Callable
.
This implementation rolls a named release back to a prior version.
execute
in class AbstractReleaseMojo
releaseManagerCallable
- the Callable
that will
provide a ReleaseManager
; must not be null
Exception
- if an error occurspublic Integer getVersion()
This method may return null
.
Overrides of this method are permitted to return null
.
null
setVersion(Integer)
public void setVersion(Integer version)
version
- the version to roll back to; must not be null
NullPointerException
- if version
is null
getVersion()
Copyright © 2017–2018, microBean. All rights reserved.