-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Run gradle tasks in postUpgradeTasks #31376
Replies: 2 comments · 11 replies
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
All reactions
-
There seems to be a mismatch between the gradlew command in your post and the one in your logs? It's probably not any root cause but I wanted to check this |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello again @rarkins, Sorry its been so long. I've been able to test this again with the latest version of Renovate (38.106.3) so with the additional logs in place. To be honest, I'm not sure I can see a difference with these new logs and I don't seem to have more information on why the artifacts upload aren't working but you know better than me what to look for so here are the new logs:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Can you really not see a difference? |
Beta Was this translation helpful? Give feedback.
All reactions
-
No... What I did notice is the addition of the following towards the end of the logs :
The phrase saying that no files matching the file filters were found makes me suspect that maybe the file filter isn't working as I expect so I'm trying again with a |
Beta Was this translation helpful? Give feedback.
All reactions
-
I have changed the command recently to the following: {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"allowScipts": true,
"allowPlugins": true,
"postUpgradeTasks": {
"commands": [
"install-tool java",
"$CI_PROJECT_DIR/gradlew -p $CI_PROJECT_DIR dependencyGuardBaseline",
"$CI_PROJECT_DIR/gradlew -p $CI_PROJECT_DIR :app:generateProdReleaseBadging",
"$CI_PROJECT_DIR/gradlew -p $CI_PROJECT_DIR :app:updateProdReleaseBadging"
],
"fileFilters": [
"**/*.txt"
],
"executionMode": "branch"
}
} The only change is the
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hello again @rarkins, I hope you're doing well. I've tried again to fix this artifact upgrade issue and have not managed to do anything... I'm starting to wonder if we're going to be able to fix it 🤔 If you ever need to discuss this directly with me feel free to reach out as needed, I'd be happy to help. I'm starting to think that adding a |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I would like help with my configuration
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab
Please tell us more about your question or problem
For some context, I am running renovate through a pre-configured Renovate bot on our self-hosted platform for an Android project.
Like many android projects, I often have gradle tasks to run when updating dependency versions.
As stated in the documentation, Renovate doesn't support extra configurations for android such as setting up the SDK.
My issue resides in the fact that I need to run a task from the Dependency Guard plugin (See here)
The plugin essentially extracts a list of libraries and their versions for a specific project variant (this isn't where the issue lies so I'll avoid explaining this concept).
What I want to do is run the following task:
./gradlew dependencyGuardBaseline
which generates a text file within the project.My repository config for renovate looks like the following (all irrelevant elements have been removed):
I have tested to change the
fileFilters
to specify directly the file to add but to no avail.My issue here is 'simply' that renovate doesn't seem to add the required files to the commit but everything supposedly works correctly as my CI/CD pipeline runs completely with no errors...
Logs (if relevant)
Beta Was this translation helpful? Give feedback.
All reactions