Configure Maven Private Artifactory by default using config.js on self hosted #9126
Replies: 3 comments 23 replies
-
If this is the case then the simplest hostRules would be:
Please note that |
Beta Was this translation helpful? Give feedback.
-
I don't know if its possibly a reason for it - but when running in PAW for example the initial response is in fact a 302 and I need to specifically enable to follow links and Redirect Authorization Not sure if that is handled in Renovate? If I disable the redirction of auth then I can recreate the 401 |
Beta Was this translation helpful? Give feedback.
-
Quick question: which type and version of Renovate are you running? e.g. npm CLI, Docker CLI, or WhiteSource Renovate On-Premises? I want to check that you've got a very recent version in use |
Beta Was this translation helpful? Give feedback.
-
I am really struggling to get this work having tried dozens of permutations!
Simple requirements:
com.myorg
then use our artifactory maven repohttps://artifactory.myorg.com:443/artifactory/projectname-maven-virtual
We are given url / credentials etc:
repo:
https://artifactory.myorg.com:443/artifactory/projectname-virtual
username:
xyz
password:
a.JWT.token
(an access token in Artifactory parlance I believe)Testing with PAW / Curl
Authorization: Bearer a.JWT.token
header-u username:a.JWT.token
Configuring the following options in the config.js I get only 401's when renovate-runner tries to get the dependencies in artifactory (and then it falls back to maven.org as expected - but misses entirely our private dependencies of course)
config.js using basic auth
config.js using token
I have also experimented with and without package rules such as
ARTIFACTORY_USER and ARTIFACTORY_JWT are CICD variables that I can see stamped out in the debug log so I know that they are accessible and expanded
e.g.
And a few dozen variations :)
Can anyone help me out? Am I doing it totally wrong? Is it even possible to do it this way via config.js for all projects?
Beta Was this translation helpful? Give feedback.
All reactions