We only need a few basic configuration options for the plugin:
CodeScene base URL: We hardcode the path to the REST API relative this base URL.
CodeScene user name: -
CodeScene password: -
Git Repository name: The repository name is sent as part of the delta analysis request and used to identify the correct Git repo in case of a multi repository analysis project. Note that the name must match the name used in the CodeScene configuration.
CodeScene returns a JSON document with the results of the dela analysis. Convert it into several HTML tables that make up the result of the plugin run:
Present a descriptive table that specifies the commits analysed and the risk classification from CodeScene.
Present a table for each category of warnings in the JSON results. Use the category of each warning as table heading and add one row for each member in the details array.