code: public Collection<ScmConfiguration> parseRepositoriesFile(String fileName, String scmType, String scmPpk, String scmUser, String scmPassword) {
          try (InputStream is = new FileInputStream(fileName)) {
              String jsonText = IOUtils.toString(is);
              JSONObject json = new JSONObject(jsonText);
              JSONArray arr = json.getJSONArray(SCM_REPOSITORIES);
  
              List<ScmConfiguration> configurationList = new LinkedList<>();
              arr.forEach(scm -> {
                  JSONObject obj = (JSONObject) scm;
                  String url = obj.getString(URL);
                  String branch = obj.getString(BRANCH);
                  String tag = obj.getString(Constants.TAG);
                  configurationList.add(new ScmConfiguration(scmType, scmUser, scmPassword, scmPpk, url, branch, tag,
                          null, false ,1));
              });
  
              return configurationList;
          } catch (FileNotFoundException e) {
              logger.error("file Not Found: {}", fileName);
          } catch (IOException e) {
              logger.error("error getting file : {}", e.getMessage());
          }
          return null;
      }
docs: /* --- Static methods ---