Last updated: Jul 26, 2020 12:59
Add Job Name and Build Number parameters
CircleCI provides some default variables. For the complete list of CircleCI variables, see here.
You can use variables to pass the Job Name and Job Number parameters to Smart Reporting.
To access these variables, use the following format within your code:
${variableName}
Add Maven or Ivy parameters
If you run your tests using Maven or Ivy, add the following JVM parameters and (optionally) the Report-tags parameter:
-Dreportium-job-name=${CIRCLE_PROJECT_REPONAME} -Dreportium-job-number=${CIRCLE_BUILD_NUM} -Dreportium-job-branch=${myBranch} -Dreportium-tags=${myTag}
You need to provide the myTag and myBranch values (see the CircleCI documentation here for information on adding variables). CircleCI automatically supplies the CIRCLE_PROJECT_REPONAME and CIRCLE_BUILD_NUM values.
To add CustomField pairs, use the following format:
-DReportiumCustomFields=customField1=value1,customField2=value2