I'm using Visual Studio Online for CI. I have a Release build set up. One of my projects has a pre build step which should only be executed for Debug builds.
if $(ConfigurationName) == Debug copy "$(ProjectDir)Config\web.$(Username).config" "$(ProjectDir)\runtime.config"
However VSO fails the build with an error that the command exited with a status of 1.
The same build runs fine when executed using Visual Studio on a developers machine.