diff --git a/ontrack-docs/src/docs/asciidoc/templating/sources/templating-source-changelog.adoc b/ontrack-docs/src/docs/asciidoc/templating/sources/templating-source-changelog.adoc index 72a0db22a7..feb999f857 100644 --- a/ontrack-docs/src/docs/asciidoc/templating/sources/templating-source-changelog.adoc +++ b/ontrack-docs/src/docs/asciidoc/templating/sources/templating-source-changelog.adoc @@ -19,6 +19,22 @@ Applicable for: * promotion run +Configuration: + +* **acrossBranches** - Boolean - required - By default, if a previous promotion is not found on the current branch, it'll be looked for in all branches of the projects. Set this parameter to `false` to disable this behaviour. + +* **allQualifiers** - Boolean - required - Loop over all qualifiers for the last level of `dependencies`, including the default one. Qualifiers at `dependencies` take precedence. + +* **commitsOption** - NONE, OPTIONAL, ALWAYS - required - Defines how to render commits for a change log + +* **defaultQualifierFallback** - Boolean - required - If a qualifier has no previous link, uses the default qualifier (empty) qualifier. + +* **dependencies** - List - required - Comma-separated list of project links to follow one by one for a get deep change log. Each item in the list is either a project name, or a project name and qualifier separated by a colon (:). + +* **empty** - String - required - String to use to render an empty or non existent change log + +* **title** - Boolean - required - Include a title for the change log + Example: [source] diff --git a/ontrack-extension-general/src/main/java/net/nemerosa/ontrack/extension/general/ReleasePropertyTemplatingSource.kt b/ontrack-extension-general/src/main/java/net/nemerosa/ontrack/extension/general/ReleasePropertyTemplatingSource.kt index 9b9d2e71fa..d82ea6118a 100644 --- a/ontrack-extension-general/src/main/java/net/nemerosa/ontrack/extension/general/ReleasePropertyTemplatingSource.kt +++ b/ontrack-extension-general/src/main/java/net/nemerosa/ontrack/extension/general/ReleasePropertyTemplatingSource.kt @@ -14,6 +14,7 @@ import org.springframework.stereotype.Component @Component @APIDescription("Gets the release/version/label associated to a build or renders an empty string is there is none.") @DocumentationExampleCode("${'$'}{build.release}") +@DocumentationIgnore class ReleasePropertyTemplatingSource( @DocumentationIgnore private val propertyService: PropertyService, diff --git a/ontrack-model/src/main/java/net/nemerosa/ontrack/model/docs/DocumentationUtils.kt b/ontrack-model/src/main/java/net/nemerosa/ontrack/model/docs/DocumentationUtils.kt index a4812014c7..520fe229b3 100644 --- a/ontrack-model/src/main/java/net/nemerosa/ontrack/model/docs/DocumentationUtils.kt +++ b/ontrack-model/src/main/java/net/nemerosa/ontrack/model/docs/DocumentationUtils.kt @@ -11,7 +11,7 @@ import kotlin.reflect.full.* fun getFieldsForDocumentationClass(documentationClass: KClass<*>): List { val fields = mutableListOf() - documentationClass.declaredMemberProperties.forEach { property -> + documentationClass.memberProperties.forEach { property -> if (!property.hasAnnotation()) { val name = getPropertyName(property)