#2397: Update Status Targets documentation to change getSourceStamp to
getSourceStamps
---------------------+--------------------
Reporter: hushp1pt | Owner:
Type: defect | Status: new
Priority: minor | Milestone: 0.8.8
Version: 0.8.7 | Resolution:
Keywords: docs |
---------------------+--------------------
Changes (by dustin):
* keywords: => docs
* type: undecided => defect
* milestone: undecided => 0.8.8
Old description:
> 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'
New description:
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#comment:1>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits