[users at bb.net] getting return values from buildsteps when using cmd on windows

honas grael honasgraeymael at gmail.com
Fri Oct 4 14:17:45 UTC 2019

I'm using buildbot on Windows, I often need to move files about on the
worker, so I have steps as follows

from buildbot.plugins import steps
f.addStep(steps.ShellCommand(command=["cmd.exe /k", "copy
Y:\sourcefile\j93n.exe Y:\dest\folder"],

This will use the Windows command prompt to copy the j93n.exe to the
destination folder, when it all works the command returns 0

which is SUCCESS, sometimes the copy fails always because the file
does not exist. But when the file copy fails, I get an error message

e.g "Copy FAILED" but the return code is also 0.

Am I using the command in the wrong way?

How can I get a non-zero return value when this copy command fails?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20191004/eb393895/attachment.html>

More information about the users mailing list