Beispiel #1
0
 @Override
 public void execute() {
   AnalysisProperties props =
       new AnalysisProperties(
           taskProps.properties(), taskProps.property(CoreProperties.ENCRYPTION_SECRET_KEY_PATH));
   if (isIssuesMode(props)) {
     String projectKey = getProjectKeyWithBranch(props);
     new ProjectSyncContainer(taskContainer, projectKey, false).execute();
   }
   new ProjectScanContainer(taskContainer, props).execute();
 }
Beispiel #2
0
 public List<Property> getPropertiesList() {
   HeartbeatFlow.log.info("Reading Selenium Grid servers properties...");
   JsonArray array = converter.convertFileToJSON(super.fileLocation);
   if (!array.getClass().equals(JsonNull.class) & array != null) {
     for (Object jsonProperty : array) {
       GridProperty prop = new GridProperty();
       prop.setUrl(converter.getProperty(jsonProperty, "url"));
       prop.setNodesList(nodesArray(jsonProperty, "nodes"));
       super.propertiesList.add(prop);
     }
   }
   return super.propertiesList;
 }