[users at bb.net] Using Command.extend or interpolate or extract_fn
honas grael
honasgraeymael at gmail.com
Thu Aug 1 22:26:27 UTC 2019
Hello, I am trying to get to grips with using Buildobt. I am using it with
a rather quirky vcs (IBM CM Synergy), which has its own query syntax when
you want to checkout code or list baselines.
To that end I am using ShellCommand. Something like this
f.addStep(steps.ShellCommand(command=['ccm baseline -list local_release_x']))
This works and basically lists all the baselines in local_release_x.
Notice that it is a single string.
In the example above local_release_x is a hardcoded string value.
I would like to make it dynamic i.e create a local_release_x property.
I think a custom function get_release_function() is what I am looking
to implement, where the function returns a variable
('local_release_x')
that can be plugged into the shell command.
f.addStep(steps.ShellCommand(command=['ccm baseline -list
extract_fn=get_release_function']))
Can anyone suggest how I can do this?
I don't seem to understand how/if I can use command.extend
<http://docs.buildbot.net/current/manual/configuration/properties.html?highlight=command%20extend>
or if I should/could be using interpolate/extract_fn
Please advise.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190801/91c5e818/attachment.html>
More information about the users
mailing list