Getting "Repository has no package files" for .NET project in Azure DevOps Pipeline #33834
Replies: 3 comments
-
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.
-
Now i'm able to create PR....but confused with config.js and renovate.json file...i need all the package manager dependencies should be detected and in single PR and all should be updated. what should be my configuration ? |
Beta Was this translation helpful? Give feedback.
-
Hi there, Please stick to one topic/question per Discussion. Start a new discussion per topic. This prevents future users from finding this discussion and getting confused by multiple questions and answers. One question and answer per Discussion works best. For example:
Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
None
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
No response
Please tell us more about your question or problem
Hi Team,
I'm trying to run renovate from Azure DevOps pipeline. By following official documents i created pipeline along with config.js file and .nmprc file. But when i try to run the pipeline its getting success but getting Repository has no package files. This is a .NET project. Please help me where I'm doing wrong.
AzurePipeline :
schedules:
displayName: 'Every day at 3am (UTC)'
branches:
include: [DevOps-ada0-stable_Rapid7]
always: true
trigger: none
pool:
vmImage: ubuntu-latest
steps:
task: npmAuthenticate@0
inputs:
workingFile: .npmrc
bash: |
git config --global user.email '[email protected]'
git config --global user.name 'Renovate Bot'
npx --userconfig .npmrc renovate
env:
RENOVATE_PLATFORM: azure
RENOVATE_ENDPOINT: $(System.CollectionUri)
RENOVATE_TOKEN: $(RENOVATE_TOKEN)
Config.js :
module.exports = {
hostRules: [
{
hostType: 'npm',
matchHost: 'pkgs.dev.azure.com/ORG_NAME',
username: 'apikey',
password: process.env.RENOVATE_TOKEN,
},
],
repositories: ['Projectname/Reponame'],
onboardingConfig: {extends: ['config:base']},
};
.npmrc:
registry=https://ORG_NAME.pkgs.visualstudio.com/_packaging/FEED_NAME/npm/registry/
always-auth=true
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions