Skip to main content
Version: 10.4.0

Tasks

Gradle execute everything with help of tasks.
You can create dependencies between tasks, the order, skip or add some dynamically base on some conditions.
Here is the short description for each task in the system, to have an understanding what is going on.

In your project can can also call the task directly by its name or skip it from the chain of the task executions, by specifying -x *taskName*.

Task NameDescription
applicationConfigurationOverrideMakes sure that even in case of overlay for deployit.conf certain properties are still what user defined. Like HTTP port or HTTP context root.
centralConfigurationConfigures certain central configuration files based on provided data by user, like repository config, workers, etc.
checkUILibVersionsChecks that React, Redux and other libraries are of the same version across all UI Deploy modules.
cliCleanDefaultExtRemoves all default content from ext folder. By default it's enabled. If you rely on those python helper scripts, you have to disable it.
cliOverlaysOverlays the files for CLI. Read more here
copyCliBuildArtifactsCopying artifacts produced inside your project (custom plugin) into CLI folders, which you define yourself.
copyOverlaysOverlays the files for the Deploy server. Read more here
copySatelliteOverlaysOverlays the files for the Satellite.
copyServerBuildArtifactsCopying artifacts produced inside your project (custom plugin) into Deploy folders, which you define yourself.
copyIntegrationServerCopy configured integration server to the worker directory.
databaseStartStarts a database.
databaseStopStops a database
dockerBasedStopDeployIf Deploy was started as a docker container, will stop it and clean all created volumes.
downloadAndExtractCliDownloads and extracts Cli from a private Nexus.
downloadAndExtractDbUnitDataDownloads and extracts DB Unit Data from a private Nexus.
downloadAndExtractSatelliteServerDownloads and extracts Satellite archive from a private Nexus.
downloadAndExtractServerDownloads and extracts Deploy Server archive from a private Nexus.
downloadAndExtractWorkerServerDownloads and extracts Deploy Worker archive from a private Nexus.
exportDatabaseExports anonymized data of the database with help of DB Unit to XML format.
Read more here
gitlabStartStarts the GitLab server in a docker image. Can be used to test Stitch functionality
gitlabStopStops the GitLab server in a docker image.
importDbUnitDataImports data into a database
integrationTestsRuns Jython integration tests via CLI. You can define certain patterns and use Gradle flags to narrow down the scope of running tests.
prepareDeployCreates initial folders and deployit.conf file
prepareDatabaseCopies required DB specific driver and configures deploy-repository.yaml in centralConfiguration
prepareSatellitesChanges ports in satellite.conf specified by the user
runCliRuns CLI as a process
runDatasetGenerationThe url "http://localhost:${server.httpPort}/deployit/generate/${dataset}" is going to be hit. This URL point is not available in Deploy by default. How you can develop it, is going to be described soon in a blog.
runDevOpsAsCodeRead about it here
runProvisionScriptStarts the server and runs the provision script. You might need it if you would like to provision the test server prior to running tests.
satelliteOverlaysOverlays the files for the Satellite.
setLogbackLevelsModifies the logback.xml by amending the levels of logs for specified packages.
setWorkerLogbackLevelsModifies the logback.xml by amending the levels of logs for specified packages.
shutdownMqShut downs docker image with MQ
shutdownIntegrationServerShutdown a integration server and all dependencies: workers, mq, satellite, etc.
shutdownSatelliteShutdown a satellite.
shutdownWorkersShutdown a worker.
startIntegrationServerThe entry point for the plugin, which starts the integration server with all dependencies.
startMqStarts MQ in a docker image.
startPluginManagerStarts the plugin manager. You have to have a CLI for that.
startSatelliteStarts the satellite as JDK process.
startWorkersStarts the worker as JDK process.
syncServerPluginsWithWorkerCopy all plugins from the xl-deploy to the worker runtime directory.
yamlPatchRead about it here
workerOverlaysOverlays the files for the Worker.
prepareWorkersTaskCreates the deployit.conf file for the workers. Note: this task only executes if there is a central configuration server enabled in the configuration.
downloadAndExtractCentralConfigurationServerDownloads the central configuration server distribution
prepareCentralConfigurationServerCreates the initial files & folders for the central configuration server before starting it
centralConfigurationServerYamlPatchApplies yaml patches to the central configuration server
centralConfigurationServerOverlaysApplies the overlays on the central configuration server
startCentralConfigurationServerStarts the central configuration server
shutdownCentralConfigurationServerShuts down the central configuration server
startCacheStarts the standalone cache server
shutdownCacheShuts down the standalone cache server