Tuning CI tool
How to provide parameters via system variables in the CI tool (for example - Jenkins) for our continuous testing platform.
In order to provide specific parameters (Such as attributes) for different executions that are based on the parameters loading order, you can provide them as system variables.
To do so, follow the steps below:
- Open the Job configuration in Jenkins.
-
Select the "This build is parameterized" check-box.
-
Click the "Add Parameter" and select "Text Parameter".
- Define any name for the parameter and set the default value (note that attributes should have semicolon-separated values, with no spaces).
- Update the execution command at the "Build" section: add ReportPortal parameters using –D for a system variable parameters. For attributes it is "rp.tags":
- Click the "Build with Parameters" button.
- In the opened dialog, specify the needed parameters, using semicolons to separate values.
- Then Click the "Build" button.