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

Dustin J. Mitchell dustin at v.igoro.us
Mon Jan 5 14:22:00 UTC 2015


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




More information about the devel mailing list