[Buildbot-commits] [Buildbot] #2397: Update Status Targets documentation to change getSourceStamp to getSourceStamps

Buildbot nobody at buildbot.net
Tue Nov 6 23:54:17 UTC 2012


#2397: Update Status Targets documentation to change getSourceStamp to
getSourceStamps
----------------------+-----------------------
Reporter:  hushp1pt   |      Owner:
    Type:  undecided  |     Status:  new
Priority:  minor      |  Milestone:  undecided
 Version:  0.8.7      |   Keywords:
----------------------+-----------------------
 Documentation says to use getSourceStamp():

     Source information (only valid if ss is not None)

     ss = build.getSourceStamp()
     if ss:
         branch = ss.branch
         revision = ss.revision
         patch = ss.patch
         changes = ss.changes # list
 ...

     def html_message_formatter(mode, name, build, results, master_status):
     """Provide a customized message to Buildbot's MailNotifier.

     The last 80 lines of the log are provided as well as the changes
     relevant to the build.  Message content is formatted as html.
     """
     ...

         ss = build.getSourceStamp()


 However, as of the latest on branch 0.8.7,

           File "/home/hushp1pt/buildbot/gerrit-verify/util.py", line 53,
 in MessageFormatter
             ss = build.getSourceStamp()
         exceptions.AttributeError: BuildStatus instance has no attribute
 'getSourceStamp'

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2397>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list