The swatbot reporter tries to get the name of the built branch, using
the "branch_poky" property of the build. Some builders, such as "docs",
do not use the poky git, so this property is missing. Currently, this
result in a non-fatal error on the buildbot controller, but the build
entry is not added to swatbot.
Import code from swattool, falling back to oecore or yocto-docs branch
name.
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
When the log name contains a space, the generated URL is not correct. This
later also breaks parsing in swatbot. This was triggered by "property
changes" and the correct URL is indeed logs/property_changes.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
For reasons unknown, logs may not always be reported, handle this
more gracefully so the error is still logged.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>