Specify additional preset equations in JSON format or provide a URL to a JSON file containing preset equations.
This field accepts either:
https://raw.githubusercontent.com/jenkinsci/report-generic-chart-column-plugin/master/src/main/resources/io/jenkins/plugins/genericchart/equations/presetEquations.json
or
file:///my/local/file.json
[
{
"id": "HAAH",
"equations": [
{
"name": "main",
"equation": [
"(L0+L1)"
],
"descriptions": [
{"condition": "/*RESULT*/ == 4","description": ["42"]},
{"condition": "/*RESULT*/ != 4","description": [" meaning of life is just /*RESULT*/"]}
]
}
]
}
]
The JSON format should follow the same structure as the built-in preset equations. These additional equations will be merged with the default preset equations, allowing you to extend or override the built-in definitions.
See examples.
Note that id is mandatory. See
more info.
Syntax rules:
/*1*/ for first param, /*2*/ for second, and so onExample JSON structure:
{
"id": "HAAH",
"comments": [
"computing nonsense",
],
"equations": [
{
"name": "main",
"equation": [
"(L0+L1)"
],
"descriptions": [
{"condition": "/*RESULT*/ == 4","description": ["42"]},
{"condition": "/*RESULT*/ != 4","description": [" meaning of life is just /*RESULT*/"]}
]
}
]
}
}
Example URLs:
https://example.com/preset-equations.jsonfile:///var/jenkins/custom-equations.jsonLeave empty to use only the built-in preset equations and own formulas
Note: When this field is modified, the preset equations cache will be reset and reloaded.