Using artifactory with Renovate does not provide json metadata #7971
-
I've managed to get renovate working with our internal artifactory repo, only to realize that the change log URLs aren't coming through in the pull requests. This is because artifactory does not support the Alternatively, is there a way to define a pip index for our private packages only? I'm using the Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, you could remove that environment variable and instead just direct lookups for particular packages using |
Beta Was this translation helpful? Give feedback.
-
After lots of trial and error, I was able to get this working! Thanks for the help.
pipeline {
agent any
environment {
PATH="/home/user/.yarn/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH"
RENOVATE_CONFIG_FILE="renovate-config.js"
RENOVATE_TOKEN=credentials("XXX")
GITHUB_COM_TOKEN=credentials("XXX")
ARTIFACTORY = credentials("artifactory")
}
triggers {
cron('@hourly')
}
stages {
stage('Renovate') {
agent {
dockerfile { }
}
steps {
sh "renovate"
}
}
}
}
module.exports = {
packageRules: [
{
packageNames: ['your', 'artifactory', 'packages'],
registryUrls: ['https://artifactory.yourcompany.com/repo-name/simple/']
}
],
hostRules: [
{
baseUrl: 'https://artifactory.yourcompany.com/',
username: process.env.ARTIFACTORY_USR,
password: process.env.ARTIFACTORY_PSW
}
]
}; |
Beta Was this translation helpful? Give feedback.
After lots of trial and error, I was able to get this working! Thanks for the help.
Jenkinsfile
:renovate-config.js
: