Skip to main content

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​

PropertyDefaultDescription
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:

PropertyDefaultDescription
jeap.deploymentlog.read-user.usernamereadUsername of the user with the role deploymentlog-read.
jeap.deploymentlog.read-user.password{noop}secretPassword of the read user, in Spring Security password-encoder format.
jeap.deploymentlog.write-user.usernamewriteUsername of the user with the role deploymentlog-write.
jeap.deploymentlog.write-user.password{noop}secretPassword of the write user, in Spring Security password-encoder format.
jeap.deploymentlog.read-api.security-enabledtrueRequire 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.

PropertyDefaultDescription
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-show50Number of deployments listed on a deployment history page and on a deployment history overview page.
component-flow-max-show50Maximum number of latest version histories rendered on each component page. Must be greater than zero; no deployment data is deleted.
change-view-activity-periodP30DActivity 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-timeP7DOnly deployments started within this duration appear on the deployment history overview pages.
structure-cache-max-agePT5MMaximum 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-durationPT10SHow long to wait before re-reading the page and retrying an update that Confluence rejected as a conflict (HTTP 409).
mock-confluence-clientfalseReplaces 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.

PropertyDefaultDescription
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-clientfalseReplaces the Jira client with a mock. For local development and tests only.
retry-delay-ms2000Delay in milliseconds before the first retry of a failed Jira request; doubled for every further retry.
label-check-exempt-issue-typesEpicIssue 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.

PropertyDefaultDescription
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.

PropertyDefaultDescription
enabledtrueEnables 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​

PropertyDefaultDescription
jeap.deploymentlog.metrics.deployment-refresh-intervalPT30SRefreshes 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.

PropertyDefaultDescription
jeap.deploymentlog.documentation-generator.scheduled.cron0 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-limit50Maximum number of deployment pages that one repair run picks up.
jeap.deploymentlog.documentation-generator.scheduled.min-age-minutes5Minimum 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-minutes10080Maximum 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-count200Legacy 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.cron0 30 3 * * *Cron expression of the housekeeping job deleting outdated pages. Set to - to disable the job.
jeap.deploymentlog.documentation-generator.async.queue-capacity512Maximum 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-burst10Number of live deployment tasks that may run consecutively before one queued background task is selected.
jeap.deploymentlog.documentation-generator.lock-acquire-timeoutPT30SMaximum 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-delayPT30SDelay 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.

PropertyDefaultDescription
jeap.deploymentlog.housekeeping.cronlegacy cron propertyCron 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.enabledtrueEnables only cleanup of old Confluence deployment pages.
jeap.deploymentlog.housekeeping.confluence-pages.min-age7dMinimum page age before it may be removed. Must be positive.
jeap.deploymentlog.housekeeping.confluence-pages.keep-per-environment200Number of deployment pages retained per system and non-productive environment regardless of age.
jeap.deploymentlog.housekeeping.data-retention.enabledfalseEnables permanent deletion of expired deployment data.
jeap.deploymentlog.housekeeping.data-retention.durationnoneMinimum retention duration. Required and positive when data retention is enabled.
jeap.deploymentlog.housekeeping.data-retention.batch-size500Maximum number of deployment candidates selected in one run.
jeap.deploymentlog.housekeeping.component-pages.enabledtrueReconciles tracked component pages and removes pages whose component has no relevant CODE deployment.
jeap.deploymentlog.housekeeping.component-pages.batch-size100Maximum number of obsolete tracked component pages reconciled in one run. Must be positive.
jeap.deploymentlog.housekeeping.undeployed-components.enabledtrueDeletes the tombstones of components undeployed longer ago than the retention, so they are no longer reported as undeployed.
jeap.deploymentlog.housekeeping.undeployed-components.retention-days730How 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.