Using CustomManagers against github-releases and vX.X.X. versions #28157
-
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.GitHub Enterprise Please tell us more about your question or problemReally great service! Hope someone here can help. I am struggling with running renovate on the following megalinter release. I think its a combination of my regex pattern hitting wrongly, and the fact that megalinters versioning uses vX.X.X. It works fine using other examples from advanced capture section. Can someone spot what I am doing wrong? Been at this for half a day lol! 😄 renovate.json: {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"dependencyDashboard": false,
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^Jenkinsfile.*$"],
"matchStrings": [
"datasource=(?<datasource>.*?) depName=(?<depName>.*?) versioning=(?<versioning>.*?)\\n.*?: \"(?<currentValue>.*)\""
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
} Jenkinsfile: # renovate: datasource=github-releases depName=oxsecurity/megalinter-terraform versioning=loose
def megalinter_version="v7.8.0" What am I doing wrong here? Best regards! Logs (if relevant)command: export LOG_LEVEL=debug
renovate --token $GITHUB_COM_TOKEN --platform=github --endpoint=https://github.<private-domain>/api/v3 --token=$GITHUB_TOKEN user/myrepo debug info:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Your regex is wrong. There you use |
Beta Was this translation helpful? Give feedback.
-
Hi there, Please do not unnecessarily For example, never It's OK to comment in an issue or discussion after multiple days or weeks. But please, still don't Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
I found the issue. Your Jenskinfile (failed):
Jenkinsfile (works like a charm):
Successfully creating the branch and PR $ renovate --token $GITHUB_TOKEN --platform=github christianshub/rennovate-test
(node:207134) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
INFO: Repository started (repository=christianshub/rennovate-test)
"renovateVersion": "37.272.0"
INFO: Dependency extraction complete (repository=christianshub/rennovate-test, baseBranch=main)
"stats": {
"managers": {"regex": {"fileCount": 1, "depCount": 1}},
"total": {"fileCount": 1, "depCount": 1}
}
INFO: Branch created (repository=christianshub/rennovate-test, branch=renovate/oxsecurity-megalinter-7.x)
"commitSha": "d239b027c2f2ffb8c93ef145fcbfb2d9fc890deb"
INFO: PR created (repository=christianshub/rennovate-test, branch=renovate/oxsecurity-megalinter-7.x)
"pr": 4,
"prTitle": "Update dependency oxsecurity/megalinter to v7.10.0"
INFO: Repository finished (repository=christianshub/rennovate-test)
"cloned": true,
"durationMs": 7911
INFO: Renovate was run at log level "info". Set LOG_LEVEL=debug in environment variables to see extended debug logs. Thank you for a great product ❤️ |
Beta Was this translation helpful? Give feedback.
I found the issue. Your
customMangers
works like a charm, I am silly and was not paying attention to the actual name of the megalinter repo: https://github.com/oxsecurity/megalinter (and not https://github.com/oxsecurity/megalinter-terraform)Jenskinfile (failed):
Jenkinsfile (works like a charm):
Successfully creating the branch and PR
$ renovate --token $GITHUB_TOKEN --platform=github christianshub/rennovate-test (node:207134) [DEP0040] Deprec…