TeamCity job skipping remaining steps after first retry
I have a TeamCity job that has a failure condition if it runs longer than 14 minutes. I'm hitting an issue where after the first 14 minutes, we try to finish running the build and then terminate the entire build after 28 minutes total.
This is my current workflow:
1. Run ios-deploy to start off our app. The failure condition causes an execution timeout after 14 minutes and kills the ios-deploy command, which is what we want and working as intended.
2. Grab artifacts off the iPhone. We grab two types of artifacts: (1) screenshots and (2) microprofiles. Screenshots take about 5 minutes and microprofiles are taking 9 minutes and counting before we retry the execution timeout.
The build Run::Run iPhone XS Headspin #2.545.5450079 {buildId=39667235} has been running for more than 28 minutes. Terminating... (attempt 2)
3. I encounter this issue afterwards which prevents me from running the remaining steps in my build.
Another attempt to stop build because of build execution timeout, previous reason was "build execution timeout"
4. One thing to note: all my build steps are set to Execute: Always, even if build stop command was issued
It seems like after one retry, if the build fails to complete, we just terminate the remaining steps. Is this the expected behavior? Preferably, I do not want to extend the execution timeout but it seems like we aren't able to complete the remaining build steps once the retry fails at 28 minutes.
Please sign in to leave a comment.