{"size": 1381, "ext": "js", "max_stars_repo_path": "lib/ci/jenkins_constants.js", "max_stars_repo_name": "mmarchini/node-core-utils", "max_stars_repo_stars_event_min_datetime": "2017-11-13T00:36:14.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-21T23:50:42.000Z", "max_issues_repo_path": "lib/ci/jenkins_constants.js", "max_issues_repo_name": "mmarchini/node-core-utils", "max_issues_repo_issues_event_min_datetime": "2017-11-10T05:04:42.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-19T20:25:38.000Z", "max_forks_repo_path": "lib/ci/jenkins_constants.js", "max_forks_repo_name": "mmarchini/node-core-utils", "max_forks_repo_forks_event_min_datetime": "2017-11-10T05:20:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-21T18:11:56.000Z"}
{"max_stars_count": 166, "max_issues_count": 503, "max_forks_count": 81, "avg_line_length": 34.525, "max_line_length": 76, "alphanum_fraction": 0.7465604634}
// com.tikal.jenkins.plugins.multijob.MultiJobBuild
const BUILD_FIELDS = 'builtOn,buildNumber,jobName,result,url';
const ACTION_TREE = 'actions[parameters[name,value]]';
const CHANGE_FIELDS = 'commitId,author[absoluteUrl,fullName],authorEmail,' +
                      'msg,date';
const CHANGE_TREE = `changeSet[items[${CHANGE_FIELDS}]]`;
const PR_TREE =
  `result,url,number,${ACTION_TREE},${CHANGE_TREE},builtOn,` +
  `subBuilds[${BUILD_FIELDS},build[subBuilds[${BUILD_FIELDS}]]]`;
const COMMIT_TREE =
  `result,url,number,${ACTION_TREE},${CHANGE_TREE},builtOn,` +
  `subBuilds[${BUILD_FIELDS}]`;
const CITGM_MAIN_TREE =
  `result,url,number,${ACTION_TREE},${CHANGE_TREE},builtOn`;

const FANNED_TREE =
  `result,url,number,subBuilds[phaseName,${BUILD_FIELDS}]`;

// hudson.tasks.test.MatrixTestResult
const RESULT_TREE = 'result[suites[cases[name,status]]]';
const CITGM_REPORT_TREE =
`failCount,skipCount,totalCount,childReports[child[url],${RESULT_TREE}]`;

// hudson.matrix.MatrixBuild
const BUILD_TREE = 'result,runs[url,number,result],builtOn';
const LINTER_TREE = 'result,url,number,builtOn';
const CAUSE_TREE = 'upstreamBuild,upstreamProject,shortDescription,_class';
const RUN_TREE = `actions[causes[${CAUSE_TREE}]],builtOn`;

module.exports = {
  PR_TREE,
  COMMIT_TREE,
  CITGM_MAIN_TREE,
  FANNED_TREE,
  CITGM_REPORT_TREE,
  BUILD_TREE,
  LINTER_TREE,
  RUN_TREE
};
