This message was deleted.
# develocity
s
This message was deleted.
j
Do you know that gradle tasks have this built in ? ie. we have this in our convention plugin:
Copy code
// Set a timeout for all tasks to weed out the hanging task
tasks.configureEach {
    timeout.set(Duration.ofMinutes(10))
}
s
Yes, this was one of the possible solutions to consider. But the problem here is that by intention the overall build execution time should be under timeout control. There are a lot of tasks and a lot of modules, so it's convoluted 😞
j
I know I am not answering your question directly but as a workaround its hard for me to imagine that you cannot put reasonable timeouts on the usual suspects (ie. test task) and get what you want ? (I am not sure if build scans are included when a task times out but I cant imagine that they arent)
thank you 1
n
You should be able to
SIGINT
to the process (ctrl + c) and the build scan will still upload.
s
I will recheck, thanks. But in this case it happens inside of ci/cd pipeline and the url with scan is expected in the output :(
n
oh, the URL will certainly not be in the output if the process is killed but the scan will still be uploaded
how are you checking that the scan is or isn't being uploaded?
s
perhaps I have to go to develocity portal and check per branch