Need help with versioning string for checkmk #31825
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.gitlab Please tell us more about your question or problemHello, I try to let renovate update my checkmk version. I use the custom manager and major updates are working, but patch level not (patch means at checkmk the number behind the p, not the thrid number) so its not a real semver and semver-coerced also doen't work) I tried a lot, here a minimal example that I like to work: renovate.json {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"packageRules": [
{
"matchManagers": ["custom.regex"],
"matchPackageNames": ["checkmk/checkmk"],
"versioning": "regexp:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.0(p(?<patch>\\d+))?$"
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^working.playbook.yml$"],
"matchStrings": ["#\\s*renovate:\\s*(datasource=(?<datasource>.*?) )?depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s*\\w*:\\s*(?<currentValue>.*)\\s?"],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
} working.playbook.yml part ...
vars:
# renovate: datasource=github-tags depName=checkmk/checkmk
checkmk_version: v2.3.0p1
... I think only semver-coerced is taken for the compare and the in the 2.3.0p16 the p16 is ignored. Logs (if relevant)Logs... ``` DEBUG: packageFiles with updates (repository=local) "config": { "regex": [ { "deps": [ { "depName": "checkmk/checkmk", "currentValue": "v2.3.0p1", "datasource": "github-tags", "versioning": "regexp:^v(?\\d+)\\.(?\\d+)\\.0(p(?\\d+))?$", "replaceString": "# renovate: datasource=github-tags depName=checkmk/checkmk\n checkmk_version: v2.3.0p1\n", "updates": [], "packageName": "checkmk/checkmk", "warnings": [], "sourceUrl": "https://github.com/checkmk/checkmk", "registryUrl": "https://github.com", "currentVersion": "v2.3.0p1", "currentVersionTimestamp": "2024-09-24T14:35:23.000Z", "fixedVersion": "v2.3.0p1" } ], "matchStrings": [ "#\\s*renovate:\\s*(datasource=(?.*?) )?depName=(?.*?)( versioning=(?.*?))?\\s*\\w*:\\s*(?.*)\\s?" ], "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", "packageFile": "working.playbook.yml" } ] } TRACE: branches (repository=local) ``` ... |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
+1, I also use CheckMK and cant figure out how to implement the versioning string correctly. |
Beta Was this translation helpful? Give feedback.
-
Try setting either:
If that doesn't work, please create a reproduction repo (instructions to follow) |
Beta Was this translation helpful? Give feedback.
-
@rarkins versioning=loose is not working. If it is simply to test, create the following docker-compose.yaml:
If you need anything further, i will provide as many details as I can in order to find a solution to this and thanks for any help in this case^^ |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Here is the reproduction repo: https://github.com/seraphblade2010/renovate-checkmk |
Beta Was this translation helpful? Give feedback.
-
Try this:
It requires major.minor.patch but has an optional pBuild |
Beta Was this translation helpful? Give feedback.
-
playbook.yml # renovate: datasource=docker depName=checkmk/check-mk-raw
checkmk_version: 2.3.0p16 renovate.json "packageRules": [
{
"matchPackageNames": ["checkmk/check-mk-raw"],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(p(?<build>\\d+))?$"
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["\\.yml$"],
"matchStrings": ["#\\s*renovate:\\s*(datasource=(?<datasource>.*?) )?depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s*\\w*:\\s*(?<currentValue>.*)\\s?"],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
] works perfect, thx |
Beta Was this translation helpful? Give feedback.
Try this:
It requires major.minor.patch but has an optional pBuild