Jenkins matrix projects, also know as multi-configuration projects, allow you to run the same build with different input parameters. The Sauce plugin for Jenkins provides an additional option for multi-configuration projects to specify the browser combination for each build.
- When setting up your job in Jenkins, select Multi-Configuration Project, and then click OK.
- under Configuration Matrix, click Add Axis.
- Select the type of test you want to run with Sauce, for example Sauce OnDemand WebDriver tests.
The option you select will determine the list of operating systems and browsers you can choose in the next step.
- Select the operating systems and browser combinations that you want to test against.
A separate job will run for each OS and browser combination that you select. The environment variables for
SELENIUM_DRIVERwill be populated for each job with your selections.
- Building a Matrix Project on the Jenkins Wiki