npm renovate fails on azure devops with https 400 #22894
Answered
by
rarkins
sommmen
asked this question in
Request Help
-
How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us what version of Renovate you run.@latest (35.134.0 as of writing) If you're self-hosting Renovate, select which platform you are using.Azure DevOps (dev.azure.com) Was this something which used to work for you, and then stopped?It used to work, and then stopped Wanted end result.Hello, Some time ago i switched renovate to run on my own azure devops hosted agent running windows 10. Oddly enough renovate works when i run this locally (win10), and on my server, but when i run in in an azure devops pipeline it faults - i cannot for the life of me figure out why. My build script is as follows; # Runs the renovate bot on a schedule.
# Adapted from: https://blog.objektkultur.de/how-to-setup-renovate-in-azure-devops/
schedules:
- cron: "0 5 * * *"
displayName: "Every day at 7am"
branches:
include:
- main
- master
always: true
trigger: none
pool:
name: 'opg.systems'
variables:
- group: "renovatebot"
steps:
- checkout: self
persistCredentials: true
fetchDepth: 1
- task: NodeTool@0
inputs:
versionSource: 'spec'
versionSpec: '18.12.0'
- script: |
cd
git config --global user.email 'bot@renovateapp.com'
git config --global user.name 'Renovate Bot'
echo "TOKEN = %TOKEN%"
echo "GITHUB_COM_TOKEN = %GITHUB_COM_TOKEN%"
npx renovate@latest
env:
TOKEN: '[REDACTED]'
GITHUB_COM_TOKEN: $(githubtoken)
LOG_LEVEL: 'debug'
workingDirectory: '$(Build.SourcesDirectory)'
displayName: 'Renovate' Renovate.json
config.js
Does anybody have any clues or suggestions? What you tried so far.
Relevant debug logsLogs
|
Beta Was this translation helpful? Give feedback.
Answered by
rarkins
Jun 20, 2023
Replies: 1 comment 4 replies
-
I suggest you remove the |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
sommmen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest you remove the
persistRepoData
setting