user2427860
user2427860

Reputation: 73

Set and get properties in Buildbot

I just setup a Buildbot server using master.cfg.sample. Everything goes well untill I want to get a property I just set in a previous step :

factory.addStep(steps.SetPropertyFromCommand(command="echo test", property="test"))

This step is excuted correctly, and the property is created correctly, but I don't know how to retreive it in the next steps and use it. Can anyone help me please ? I'm using Buildbot 1.4.0 on Windows.

Thanks

Upvotes: 0

Views: 381

Answers (1)

Poko
Poko

Reputation: 822

You just have use util.Interpolate In your case it will be something like that:

factory.addStep(ShellCommand(command=['echo', util.Interpolate('%(prop:test)s')],                                                                                                                                         
        ))

Upvotes: 2

Related Questions