[Buildbot-devel] [Need help] with "got_revision" for multi-codebase builds in build steps

sanjuro at openmailbox.org sanjuro at openmailbox.org
Fri Jan 9 08:56:17 UTC 2015


On 2015-01-05 16:22, Dustin J. Mitchell wrote:
> You can use Interpolate with it `src` selector
>   
> http://docs.buildbot.net/latest/manual/cfg-properties.html#interpolate
> 
> Interpolate('Repo1_%(src:Repo1:revision)s_Repo3_$(src:Repo3:revision)s')
> 
> Dustin
> 
> On Mon, Jan 5, 2015 at 4:26 AM,  <sanjuro at openmailbox.org> wrote:
>> I need to generate build filename string in a buildstep.
>> 
>> Interpolate("%(prop:got_revision)s")
>> 
>> produces just a dictionary:
>> 
>> { 'Repo1': '12345',
>>    'Repo2': '54321',
>>    'Repo3': '56789' }
>> 
>> But how can I directly use this dictionary to generate such filename?
>> 
>> "Repo1_12345_Repo3_56789"
>> 
>> Note: I also need to exclude 'Repo2' part.
>> 
>> 
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming! The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, 
>> is your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. 
>> Take a
>> look and join the conversation now. http://goparallel.sourceforge.net
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

Thanks. I already tried your way. I noticed that "%(src:Repo1:revision)" 
and "%(src:Repo3:revision)s" evaluates to "" an empty strings every time 
when I have "Build of most recent revision" message in "Source Stamps:" 
section of web interface. So I decided to switch to renderer.




More information about the devel mailing list