Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canceled builds are not considered unsuccessful #7

Open
tzz opened this issue Aug 17, 2017 · 2 comments
Open

Canceled builds are not considered unsuccessful #7

tzz opened this issue Aug 17, 2017 · 2 comments
Assignees
Milestone

Comments

@tzz
Copy link

tzz commented Aug 17, 2017

Currently, canceled builds are OK. This is a problem for us on machines that are being rebooted (the build gets scheduled, the agent dies, the build is canceled).

It would be good if there was an option to retry canceled builds (e.g. try up to 3 times) and fail if they never run.

@presidentio presidentio self-assigned this Aug 20, 2017
@presidentio presidentio added this to the 1.0.2 milestone Aug 20, 2017
@presidentio
Copy link
Owner

@tzz Could you please attache screenshot of cancelled build or at least cancel reason?

@tzz
Copy link
Author

tzz commented Aug 21, 2017

On your build, set the last step to be a shell command

cd ${INSTALL_DIR}/bin
./agent.sh stop

We do that because we wipe the machine (PXE boot) after every build, so we don't want more builds scheduled. But TeamCity still queues a build on that agent, and when the agent is stopped, the build is canceled instead of rescheduled.

So for me, that results in a canceled build. Let me know if it doesn't for you. It may be something specific to our environment after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants