Hi Francesco,

In order to implement that you will need to create a custom step using the
"new style form"
untested example follows:

class AddRuntimeSteps(BuildStep):
def run(self):
for item in self.getProperty("foo", "").split(','):
self.build.addStepsAfterCurrentStep(ShellCommand("echo " + item))
return SUCCESS

On Tue, Jan 16, 2018 at 3:55 PM Francesco Di Mizio <
[email protected]> wrote:

> Hey gents,
>
> how do I accomplishing something like this? I'd like to add a block of
> steps inside a loop.
>
> In pseudo code:
>
> for item in utils.Property('foo').split(','):
>     addSteps(bar)
>
> PS: that wouldnt work obviously :)
>
> Thanks!
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to