Embodiments of the invention disclose a method, device and
system for generating code documents in
continuous integration. The method comprises the following steps of: obtaining a code and a
code annotation submitted by a user; judging whether the
code annotation is correct or not according to the code; if the judging result is positive, storing the code and the
code annotation into a code
library and executing the next step; if the judging result is negative, returning prompt information; obtaining a code structure and the code
annotation, and recording the code structure and the code
annotation into a source file; and generating the source file into a code document according to a preset configuration file. According to the method, the code and the code
annotation submitted by the users are verified to ensure the consistency between the code annotation and the code; after the
verification passes, the source file is generated according to the code structure and the code annotation, submitted by a worker, of the code; and the source file is generated into the code document according to the preset configuration information. According to the method, device and
system disclosed by the invention, the automatic generation and timely updating of code documents are realized, so that the manpower resources are saved, and the working efficiency and the
correctness of the code documents are improved.