Class S3DeploymentEventsProcessor
java.lang.Object
org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
org.craftercms.deployer.impl.processors.aws.AbstractS3Processor
org.craftercms.deployer.impl.processors.aws.S3DeploymentEventsProcessor
- All Implemented Interfaces:
DeploymentProcessor,InitializableByConfigBean,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Implementation of
AbstractS3Processor that uploads the deployment events to AWS S3.
Can be configured with the following YAML properties:
- deploymentEventsFileUrl: URL of the deployment events file, relative to the local git repo
- Since:
- 3.1.8
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected StringURL of the deployment events file, relative to the local git repo.protected DeploymentEventsStore<?, Path> Fields inherited from class org.craftercms.deployer.impl.processors.aws.AbstractS3Processor
builderConfigurer, CONFIG_KEY_URL, DELIMITER, logger, s3Url, threadPoolTaskExecutorFields inherited from class org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
FAIL_DEPLOYMENT_CONFIG_KEY, failDeploymentOnFailureFields inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
alwaysRun, env, excludeFiles, includeFiles, JUMPING_TO_PARAM_NAME, jumpTo, label, name, siteName, targetId -
Constructor Summary
ConstructorsConstructorDescriptionS3DeploymentEventsProcessor(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutor, DeploymentEventsStore<?, Path> store) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInit(org.apache.commons.configuration2.Configuration config) Allows extending classes perform any custom initializationprotected ChangeSetdoMainProcess(Deployment deployment, ProcessorExecution execution, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) Methods inherited from class org.craftercms.deployer.impl.processors.aws.AbstractS3Processor
buildAsyncClient, buildClient, buildTransferManager, doDestroy, getBucket, getS3BaseKey, getS3KeyMethods inherited from class org.craftercms.deployer.impl.processors.AbstractMainDeploymentProcessor
doExecute, failDeploymentOnProcessorFailure, init, shouldExecuteMethods inherited from class org.craftercms.deployer.impl.processors.AbstractDeploymentProcessor
destroy, execute, getDeploymentParam, getFilteredChangeSet, isJumpToActive, isPostDeployment, setBeanName, setEnv, setSiteName, setTargetId, shouldIncludeFile, startJumpTo, supportsMode
-
Field Details
-
DEFAULT_DEPLOYMENT_EVENTS_FILE_URL
- See Also:
-
CONFIG_KEY_DEPLOYMENT_EVENTS_FILE_URL
- See Also:
-
store
-
deploymentEventsFileUrl
URL of the deployment events file, relative to the local git repo.
-
-
Constructor Details
-
S3DeploymentEventsProcessor
@ConstructorProperties({"threadPoolTaskExecutor","store"}) public S3DeploymentEventsProcessor(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutor, DeploymentEventsStore<?, Path> store)
-
-
Method Details
-
doInit
protected void doInit(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException Description copied from class:AbstractS3ProcessorAllows extending classes perform any custom initialization- Overrides:
doInitin classAbstractS3Processor- Parameters:
config- the bean's configuration- Throws:
org.craftercms.commons.config.ConfigurationException- if there's configuration related exception
-
doMainProcess
protected ChangeSet doMainProcess(Deployment deployment, ProcessorExecution execution, ChangeSet filteredChangeSet, ChangeSet originalChangeSet) throws DeployerException Description copied from class:AbstractMainDeploymentProcessorPerforms the actual work of processing the files in theChangeSet, it is also possible to return a newChangeSetto be used for the following processors in the pipeline- Specified by:
doMainProcessin classAbstractMainDeploymentProcessor- Parameters:
deployment- the current deploymentexecution- the current executionfilteredChangeSet- the filtered change set (as returned byAbstractDeploymentProcessor.getFilteredChangeSet(ChangeSet))originalChangeSet- the original change set (as returned by the previous processors in the pipeline)- Returns:
- a new
ChangeSetor null - Throws:
DeployerException- if there is any error processing theChangeSet
-