[Buildbot-devel] problems uploading build artefacts in Buildbot 0.8.8
Neil Leathers
neil.r.leathers at gmail.com
Wed Oct 9 14:09:53 UTC 2013
I would like to upload my build artefacts to our release area and record
the URL so people can down them. I used the following commands.
buildFactory.addStep(ShellCommand(name="Create Release Area",
workdir=buildFactory.workdir+"/source", command=Interpolate('mkdir -p
%(prop:artifacts_dst_path)s;')))
buildFactory.addStep(FileUpload(slavesrc=Interpolate("~/package/%(prop:platform)s/%(prop:platform)s-artefact-%(prop:build_num)s.zip"),
masterdest=Interpolate("%(prop:artifacts_dst_path)s"),
url=Interpolate("
https://server/Daily-Releases/%(prop:build_id)s/%(prop:platform)s-artefact-%(prop:build_num)s.zip
")))
The first command works and creates the directory
%(prop:artifacts_dst_path)s
(specifically/media/HAServer/Daily-Releases/3.0.0-181-gd884775).
The second command throws and exception creating the same directories again
incorrectly (at the mount point /media/HAServer). The documentation of
FileUpload gives no indication that it attempts to create directories and
this undocumented "feature" is clearly not implemented correctly.
Furthermore, reading the details of the FileUpload I suspect this may not
be the correct step to use to release build artefacts.
Is FileUpload the correct way to release build artefacts? If so, when will
it be fixed? If not, what is the correct step to use to release build
artefacts and register the URL for use on the build details page?
Neil Leathers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20131009/52dac5fc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: err.html.zip
Type: application/zip
Size: 1073 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20131009/52dac5fc/attachment.zip>
More information about the devel
mailing list