Project Data Cover
Code Insight 6.14.2 SP2
The ProjectDataCover is the entry point for Code Insight Core Server project data management public APIs. To use these APIs, the ProjectDataCover must be instantiated by passing the Code Insight Core Server IP address. An example is shown below.
Constructor
ProjectDataCover(String Code InsightCoreServerIpAddress)
Sample Code
import com.Code Insight.script.ProjectDataCover;
// Enter core server IP address
String coreServerIpAddress = System.getProperty("core.server.url");
ProjectDataCover pdCover = new ProjectDataCover(coreServerIpAddress);
if (pdCover != null) {
try {
// Print all inventory items for project
String teamName = "Engineering";
String projectName = "ePortal 1.3";
pdCover.getInventoryForProject(teamName, projectName).each {
invItem ->
println("Inventory Item: " + invItem.getAuditGroupLabel());
}
} catch (Exception e) {
e.printStackTrace();
}
} else {
println("Unable to connect to Code Insight Core server: " + coreServerIpAddress);
}