Regex Manager - Registry URL Template #8589
-
Hi, I'm looking to run the regex manager on a resource which is hosted in a private GitLab instance. Is it possible to configure the registryUrl without using a capture group? Here is some example configuration: "regexManagers": [
{
"fileMatch": ["(^|/)Jenkinsfile$"],
"matchStrings": [
"@Library\\(\"jenkinsLib@(?<currentValue>.*?)\"\\)_"
],
"datasourceTemplate": "gitlab-tags",
"depNameTemplate": "group/repositoryName",
"versioningTemplate": "semver",
}
], My issue is that The configuration suggests this is possible using the registryUrl capture group, however in my scenario, I don't have text to match on that details the registry this resource is hosted on. I understand I could expand my regex to include the additional match and add the registry URL within my Jenkinsfile, however I am attempting to get this to function on a number of repositories without me having to update all of the repositories to include this additional information (Which may change in future too). Is there any way to do what I'm looking to do, or would this be an enhancement to renovate? Edit: From looking at how the code functions, it appears this functionality could be added via using a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it makes most sense to allow |
Beta Was this translation helpful? Give feedback.
I think it makes most sense to allow
registryUrlTemplate
, which shouldn't be much work