Plugin to stop/skip a build and mark it as successful


New to plugin development, but not as a TeamCity administrator.

I'm trying to find a way, with a plugin, to do an "early exit" on a build based on some parameter values.

I'd like to skip the "build preparation" phase as well (no vcs sync, etc), just early exit and mark the build as successful, so the rest of the build chain execute as if the build has been running normally. I don't want to do this check in the first build step, because the build preparation takes some time (vcs sync, artifacts download, etc) and I'd like to skip this.

Is there any agentSide or serverSide hook that would allow me to do such thing?

Thank you for you help



Please sign in to leave a comment.