Package io.jenkins.plugins.asyntai
Class KnowledgeSync
java.lang.Object
io.jenkins.plugins.asyntai.KnowledgeSync
Compares documentation files with the knowledge base and sends the
difference. Has no Jenkins dependency, so the rules are easy to test.
The entry title is the file path with the title prefix in front. The next run finds the entry again by that title.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSettings for one run.static final classCounts and rows of one run.static final classOne line of the build summary.static final classOne file to send: its path relative to the root folder, and its raw text. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeSync.Resultrun(List<KnowledgeSync.SourceFile> files, KnowledgeApi api, KnowledgeSync.Options options, PrintStream log) Runs the sync.
-
Method Details
-
run
public static KnowledgeSync.Result run(List<KnowledgeSync.SourceFile> files, KnowledgeApi api, KnowledgeSync.Options options, PrintStream log) throws ApiException Runs the sync.- Throws:
ApiException- when the knowledge base cannot be read at all
-