Configuration
All properties of the Deployment Log Service are namespaced under jeap.deploymentlog.*. Baseline defaults
are defined in deploymentlogDefaultProperties.properties of the service library. See
Getting Started for a minimal configuration of an
instance.
Two of the property groups are bound with ignoreUnknownFields = false
(…documentation-generator.confluence and …jira), so a typo in one of their keys fails the startup
instead of being silently ignored.
Documentation root URL
| Property | Default | Description |
|---|---|---|
jeap.deploymentlog.documentation.root-url | — | Prefix a generated Confluence page id is appended to. Used for the GET /api/deployment-doc/… redirect and for the remote links written into Jira issues. Required — the application does not start without it. |
Since the page id is appended verbatim, the value has to end where the id belongs, for example
https://confluence.example.com/pages/viewpage.action?pageId=.
API users
The /api/** endpoints are secured with HTTP basic authentication against two in-memory users:
| Property | Default | Description |
|---|---|---|
jeap.deploymentlog.read-user.username | read | Username of the user with the role deploymentlog-read. |
jeap.deploymentlog.read-user.password | {noop}secret | Password of the read user, in Spring Security password-encoder format. |
jeap.deploymentlog.write-user.username | write | Username of the user with the role deploymentlog-write. |
jeap.deploymentlog.write-user.password | {noop}secret | Password of the write user, in Spring Security password-encoder format. |
jeap.deploymentlog.read-api.security-enabled | true | Require authentication with deploymentlog-read or deploymentlog-write for the /api/deployment-records collection and detail endpoints. Set to false only when an upstream access-control layer protects them. Existing /api/deployment endpoints remain protected. |
The defaults exist so that the library's own tests run out of the box and must be overridden in every
real deployment. Use an encoder prefix such as {bcrypt} for the passwords; {noop} stores them in clear
text and is only acceptable locally. See REST API for which endpoint requires which
role.
Confluence
Prefix jeap.deploymentlog.documentation-generator.confluence. Unknown keys under this prefix fail the
startup.
| Property | Default | Description |
|---|---|---|
url | — | Base URL of the Confluence instance. |
space-key | — | Key of the Confluence space the documentation is generated into. |
root-page-id | — | Id of the existing Deployments page used as the generated tree's root. No additional Deployments child is created. |
username | — | Technical user with write permission on the page tree. |
password | — | Password of the technical user. Excluded from the configuration log output. |
deployment-history-max-show | 50 | Number of deployments listed on a deployment history page and on a deployment history overview page. |
component-flow-max-show | 50 | Maximum number of latest version histories rendered on each component page. Must be greater than zero; no deployment data is deleted. |
change-view-activity-period | P30D | Activity period for Jira project pages below Changes. An issue is active when a deployment was started in this period. Accepts Spring Boot duration values and must be greater than zero. |
deployment-history-overview-max-time | P7D | Only deployments started within this duration appear on the deployment history overview pages. |
structure-cache-max-age | PT5M | Maximum reuse time per instance for a successfully synchronized documentation structure. Metadata changes or generation failures invalidate it earlier; PT0S disables reuse. The next ordinary request after expiry performs a full reconciliation. |
retry-on-conflict-wait-duration | PT10S | How long to wait before re-reading the page and retrying an update that Confluence rejected as a conflict (HTTP 409). |
mock-confluence-client | false | Replaces the Confluence client with a mock that generates no pages. For local development and tests only. |
Jira
Prefix jeap.deploymentlog.jira. Unknown keys under this prefix fail the startup.
| Property | Default | Description |
|---|---|---|
url | — | Base URL of the Jira instance. The client calls its rest/api/2 endpoints. |
app-id | — | Application id of the linked Confluence instance in Jira. Together with the normalized Issue Key it forms the stable globalId of the DeploymentLog issue-page remote link. |
username | — | Technical user. Needs browse permission on the referenced projects and permission to add remote links. |
password | — | Password of the technical user. Excluded from the configuration log output. |
mock-jira-client | false | Replaces the Jira client with a mock. For local development and tests only. |
retry-delay-ms | 2000 | Delay in milliseconds before the first retry of a failed Jira request; doubled for every further retry. |
label-check-exempt-issue-types | Epic | Issue type names exempt from the R4DEPLOY label check of the ready-for-deploy check (they only need to exist). Matched case-insensitively against the issue type name Jira returns for the technical user; renaming or translating an issue type can silently remove the exemption. |
Documentation generator
Prefix jeap.deploymentlog.documentation-generator.config.
| Property | Default | Description |
|---|---|---|
remedy-change-link-root-url | — | Prefix the remedyChangeId of a deployment is appended to, turning it into a link on the generated page. A missing trailing slash is added. If unset, the id is rendered without a link. |
Deployment version history
The configuration prefix remains jeap.deploymentlog.flow for compatibility.
| Property | Default | Description |
|---|---|---|
enabled | true | Enables classification and metrics for CODE deployments. |
start-environment | — | Start stage; defaults to the unique environment with development=true. |
default-final-deployment-environment | — | End stage; defaults to the unique environment with productive=true. |
Relevant stages are all environments between start and end inclusive, sorted by stagingOrder. Their orders must
be distinct, and the start must not follow the end. Blank, unknown or ambiguous configuration fails startup.
Deployments outside this range remain recorded without a staging type. Missing or empty request
finalDeploymentEnvironments means no AutoStaging; it never defaults to the configured end stage.
Deployment and version metrics
| Property | Default | Description |
|---|---|---|
jeap.deploymentlog.metrics.deployment-refresh-interval | PT30S | Refreshes persistent deployment and version metric totals on every replica. Spring Boot duration syntax is supported. |
The former flow-open-refresh-interval setting is obsolete. Version history has no open or terminal lifecycle.
See Operations for the replacement metrics and ratio formulas.
Docgen execution and scheduled jobs
The scheduled-job properties use the prefix jeap.deploymentlog.documentation-generator.scheduled. Execution limits
and the legacy housekeeping cron use the same documentation-generator namespace. See
Operations for what the jobs do.
| Property | Default | Description |
|---|---|---|
jeap.deploymentlog.documentation-generator.scheduled.cron | 0 0/10 * * * * | Cron expression of the repair job generating missing and outdated pages. Set to - to disable the job. |
jeap.deploymentlog.documentation-generator.scheduled.retried-pages-limit | 50 | Maximum number of deployment pages that one repair run picks up. |
jeap.deploymentlog.documentation-generator.scheduled.min-age-minutes | 5 | Minimum age of a deployment before the repair job regenerates its page — younger ones are assumed to be still in progress. |
jeap.deploymentlog.documentation-generator.scheduled.max-age-minutes | 10080 | Maximum deployment age for repair discovery (7 days, based on startedAt). Persisted pending generation requests remain eligible beyond this limit. Must exceed min-age-minutes. |
jeap.deploymentlog.documentation-generator.scheduled.keep-deployment-page-per-env-count | 200 | Legacy fallback for the number of deployment pages kept when the new housekeeping.confluence-pages.keep-per-environment property is not set. |
jeap.deploymentlog.documentation-generator.housekeeping.cron | 0 30 3 * * * | Cron expression of the housekeeping job deleting outdated pages. Set to - to disable the job. |
jeap.deploymentlog.documentation-generator.async.queue-capacity | 512 | Maximum number of queued, deduplicated Docgen tasks. A live task may displace a queued deployment-repair task, which remains discoverable by the repair job. |
jeap.deploymentlog.documentation-generator.async.live-task-burst | 10 | Number of live deployment tasks that may run consecutively before one queued background task is selected. |
jeap.deploymentlog.documentation-generator.lock-acquire-timeout | PT30S | Maximum time a Docgen task waits for a per-system or documentation-structure lock. History refreshes retry lock timeouts up to three times. |
jeap.deploymentlog.documentation-generator.history-lock-retry-delay | PT30S | Delay before each of up to three history-refresh retries after a lock timeout. Must not be negative; retries share the bounded background queue and do not block its worker during the delay. |
The repair job processes never-attempted missing or outdated pages oldest-first, then rotates by the persistent last
attempt time. Discovery is limited to the last seven days by default (previously one day); persisted pending generation
requests remain eligible regardless of maximum age. A permanently failing page cannot prevent the remaining eligible
backlog from being processed. Explicit instance settings for max-age-minutes override the new default.
The common housekeeping run supports the following properties. The legacy
jeap.deploymentlog.documentation-generator.housekeeping.cron remains the fallback when the new cron property is
not set.
| Property | Default | Description |
|---|---|---|
jeap.deploymentlog.housekeeping.cron | legacy cron property | Cron expression for the common page cleanup, data retention, component-page reconciliation and undeployed-component cleanup run. The new property takes precedence. |
jeap.deploymentlog.housekeeping.confluence-pages.enabled | true | Enables only cleanup of old Confluence deployment pages. |
jeap.deploymentlog.housekeeping.confluence-pages.min-age | 7d | Minimum page age before it may be removed. Must be positive. |
jeap.deploymentlog.housekeeping.confluence-pages.keep-per-environment | 200 | Number of deployment pages retained per system and non-productive environment regardless of age. |
jeap.deploymentlog.housekeeping.data-retention.enabled | false | Enables permanent deletion of expired deployment data. |
jeap.deploymentlog.housekeeping.data-retention.duration | none | Minimum retention duration. Required and positive when data retention is enabled. |
jeap.deploymentlog.housekeeping.data-retention.batch-size | 500 | Maximum number of deployment candidates selected in one run. |
jeap.deploymentlog.housekeeping.component-pages.enabled | true | Reconciles tracked component pages and removes pages whose component has no relevant CODE deployment. |
jeap.deploymentlog.housekeeping.component-pages.batch-size | 100 | Maximum number of obsolete tracked component pages reconciled in one run. Must be positive. |
jeap.deploymentlog.housekeeping.undeployed-components.enabled | true | Deletes the tombstones of components undeployed longer ago than the retention, so they are no longer reported as undeployed. |
jeap.deploymentlog.housekeeping.undeployed-components.retention-days | 730 | How many days an undeployed component is still reported as undeployed on an environment. Must be positive. |
Data retention uses Deployment.started_at. It deletes SUCCESS, FAILURE and CANCELLED deployments, and protects
STARTED deployments and deployments referenced as the current component version
of a stage. Each deployment is evaluated independently. Data retention is deliberately disabled by default until an
operator configures the applicable retention duration.
Database
The service requires PostgreSQL. Only the datasource has to be configured — the JPA, Hikari and Flyway settings come with the library:
spring:
datasource:
url: jdbc:postgresql://db-host:5432/deploymentlog
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
Defaults set by deploymentlogDefaultProperties.properties that an instance should not override:
spring.jpa.hibernate.ddl-auto=none, spring.jpa.generate-ddl=false, spring.jpa.open-in-view=false,
the PostgreSQL dialect and driver, spring.flyway.enabled=true, and a Hikari pool of 10 connections named
after spring.application.name.
Flyway migrates the schema at startup from the migrations bundled in jeap-deploymentlog-persistence
(db/migration), picked up through the default spring.flyway.locations.
MCP server
The optional module jeap-deploymentlog-mcp is configured with the jEAP MCP starter (jeap.mcp.*) and Spring AI
(spring.ai.mcp.server.*), both with defaults contributed by the module. It needs no security configuration: the
MCP endpoint is open (jeap.mcp.security.anonymous-access defaults to true), see Security. Its
own property jeap.deploymentlog.mcp.query-timeout-seconds (default 4) is the transaction timeout of the tool
queries. See MCP Server and Protecting the database.