[Buildbot-devel] Responsible user for triggered build

Patrick Valsecchi pvalsecc at cisco.com
Wed Apr 2 14:23:14 UTC 2014


I checked and it doesn't come from a property. It comes from 
process.build.Build.blamelist:

     def blamelist(self):
         blamelist = []
         for c in self.allChanges():
             if c.who not in blamelist:
                 blamelist.append(c.who)
         for source in self.sources:
             if source.patch_info: #Add patch author to blamelist
                 blamelist.append(source.patch_info[0])
         blamelist.sort()
         return blamelist

I guess none of those are provided in the case of a Trigger.

Maybe I could add the code to get the value from a property that is set 
in the Trigger. If you guys are OK with that, I can come up with a patch.


On 02. 04. 14 15:58, Vasily wrote:
> If "responsible user" comes in a property - yes, you need to use 
> either set_properties or copy_properties parameter.
>
> I'm not sure whether it is in a property, sourcestamp or changeset as 
> I don't have much experience with those changesource things, so maybe 
> we'd better wait till someone more knowledgable chimes in.
>
> Thanks,
> Vasily
>
>
> 2014-04-02 17:23 GMT+04:00 Patrick Valsecchi <pvalsecc at cisco.com 
> <mailto:pvalsecc at cisco.com>>:
>
>     Hi Vasily,
>
>     I need to set properties manually to pass the responsible user to
>     the scheduler?
>
>     Here are those two guys:
>
>     builder_factory.addStep(
>         Trigger(schedulerNames=['iol_xrut'], waitForFinish=False,
>                 sourceStamp={'branch': 'unittest'},
>                 set_properties={
>                     'image':
>     Interpolate('ios_sla/i86bi_linux-adventerprisek9-ms-%(prop:buildnumber)s.tar.gz')}))
>
>     schedulers = [
>         Triggerable(name="iol_xrut", builderNames=["xos_sla_iol_xrut"])
>     ]
>
>     Thanks
>
>
>     On 02. 04. 14 10:30, Vasily wrote:
>>     Hi Patrick,
>>
>>     Can you share a snippet of how you define Trigger and Triggerable
>>     scheduler? Maybe you just don't set the scheduler to pass the
>>     property you need?
>>
>>     Thanks,
>>     Vasily
>>
>>
>>     2014-04-02 11:05 GMT+04:00 Patrick Valsecchi <pvalsecc at cisco.com
>>     <mailto:pvalsecc at cisco.com>>:
>>
>>         Hi,
>>
>>         I'm using buildbot 0.8.8 and I have a Trigger set with a
>>         Triggerable
>>         scheduler that goes with it. Everything works fine apart from
>>         the fact
>>         that the "responsible user" is not forwarded to the
>>         Triggerable scheduler.
>>
>>         Is it a feature or a bug? Is there a trick to work around that?
>>
>>         Thanks.
>>
>>         ------------------------------------------------------------------------------
>>         _______________________________________________
>>         Buildbot-devel mailing list
>>         Buildbot-devel at lists.sourceforge.net
>>         <mailto:Buildbot-devel at lists.sourceforge.net>
>>         https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20140402/fd94b997/attachment.html>


More information about the devel mailing list