Add project level reports with Kotlin DSL

Hi,

Is it possible to add project level reports via the Kotlin DSL?  I was expecting to find something on `jetbrains.buildServer.configs.kotlin.v2017_2.Project`, am I looking in the wrong place?

TIA

0
2 comments

Hi Russell,

I'm assuming you are talking about the "Report Tabs"

It is possible to add them, but it's not going to be trivial. At the moment, report tabs are added as project features, so you need to add one as such. The issue that makes this not be a trivial problem is that the parameters for the charts have to be generalized, and thus aren't passed as a "name: value", where the IDE can help with autocompletion, but are passed instead as a pair of "param("name", "value")", where the IDE cannot really help as the parameter name is a string, not a variable.

The easiest way to accomplish this would be to have one manually created as an example, then use it as a reference to create further ones.

An example here :

features {
feature {
id = "PROJECT_EXT_1"
type = "ReportTab"
param("buildTypeId", "Tests_1")
param("startPage", "index.html")
param("revisionRuleName", "lastSuccessful")
param("revisionRuleRevision", "latest.lastSuccessful")
param("title", "someTitle")
param("type", "ProjectReportTab")
}
}
0
Avatar
Permanently deleted user

Awesome, that worked!  Many thanks.

0

Please sign in to leave a comment.