Does on_finish (Finalize) script is called when the build was stopped due to timeout?
Hi all,
Does the on_finish script executes when the build is stopped due to "Build execution time has reached the maximum allowed time for your plan (60 minutes).". If not, is there any way to upload something to artifacts when timeout is reached?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 13 Feb, 2023 04:53 PM
Hi Grigorii,
on_finish
is not called when timeout occurs (otherwise how much time would be "allowed" to runon_finish
scripts?). I think you can schedule some background job oninit
stage of your build to run in, let's say, 59 minutes: https://learn.microsoft.com/en-us/powershell/module/psscheduledjob/...Feodor Fitsner closed this discussion on 15 Apr, 2023 09:03 PM.