This plugin allows useMango tests to be executed as a Jenkins job on Jenkins 2.x.
Main features:
- Execute useMango tests on Jenkins
- Filter tests using account settings
- Run tests in parallel across multiple nodes
- Generate JUnit reports
-
Clone this repository from GitHub
-
Build the plugin:
mvn clean package
- Install the plugin:
- Copy to your
%JENKINS_HOME%\plugins
directory, OR - Login to Jenkins and upload your plugin (
Jenkins
->Manage Jenkins
->Manage Plugins
->Advanced
)
- Copy to your
-
Navigate to
Jenkins
->Manage Jenkins
->Configure System
-
Locate the
useMango Location
section and enter theuseMango URL
and youruseMango credentials
- Create a new Freestyle project and configure:
- Add the build step
Run useMango tests
- Enter your
Project ID
(i.e. the name of your project in your useMango account) - Add further filtering where needed
- Click the
Validate
button to validate your settings (note: only the tests shown will be executed during the build) - Optional: Add the post-build action
Publish JUnit test result report
and enterresults/*.xml
as the value forTest report XMLs
.
- Add the build step
- Credentials
- Test Results Analyzer
- Windows node(s) with useMango installed: To run useMango tests you must have Windows slave nodes configured in your Jenkins setup, with useMango installed on each node. To run useMango tests on your Windows node(s), give each node the same label then check
Execute tests on labelled nodes
and enter the label as the value forLabel Expression
.