0
我使用Perforce
作爲CVS,並計劃在構建完成時發送郵件。在buildstep中,我可以使用self.build.allFiles()
來獲取文件列表,但我無法找到在mailnotifier中這樣做的方法。如何將構建的文件列表傳遞給BuildBot中的mailnotifier?
我使用Perforce
作爲CVS,並計劃在構建完成時發送郵件。在buildstep中,我可以使用self.build.allFiles()
來獲取文件列表,但我無法找到在mailnotifier中這樣做的方法。如何將構建的文件列表傳遞給BuildBot中的mailnotifier?
可以使用DataConnector
類來實現這一目標。 changes = yield self.master.data.get("builds", buildid, "changes") files = [] for c in changes: files.extend(c['files'])