Question

Before my build starts, each of my ShellCommand steps are labelled shell_\d+. It would be nice if Buildbot used the step description instead of the auto generated shell label. Also when we get an email notification, as it says BUILD FAILED: failed shell_3 but it would be nicer if it said BUILD FAILED: unit test xyz failed.

Is there a way to change this shell ID id something else? Perhaps by creating a custom build step and overriding a function? I'm not sure where this ID comes from exactly.

Was it helpful?

Solution

You give the step a name in the addStep method for example:

f = buildbot.process.factory.BuildFactory()
f.addStep(buildbot.steps.shell.ShellCommand((name = 'Hello',
                                             cmd = ['echo', 'Hello World']))

I'd implement the second part as a log observer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top