Previous: Project Settings Next: UDT-Gitlab CI Integration 
Jenkins is a widely used continuous integration (CI) tool. As a free and open-source software written in Java, Jenkins enhances your release agility by providing continuous integration services. These services can be triggered via a web application server or command line, accelerating deployment processes and version migration activities.
Leveraging the Jenkins plugin provided by the UDT Platform, you can connect your Jenkins CI instance to the platform’s automated testing tasks—embedding UDT’s “multi-device test execution capabilities” into Jenkins pipelines. This replaces fragmented manual processes such as “manual UDT test triggering, manual result aggregation, and manual release blocking,” enabling end-to-end automation of the entire workflow: code submission → build → multi-device automated testing → result feedback → release/rollback.
This document details the working principles, applicable scenarios, and step-by-step operation guide for integrating the UDT Platform with Jenkins.
If you wish to experience the UDT Platform’s Jenkins pipeline integration functionality, please contact us to obtain the UDT Jenkins plugin. Our technical team will assist you in completing the initial task build.
Automated multi-end compatibility, functionality, and performance testing in CI pipelines, as well as multi-dimensional acceptance testing prior to version release.
Pain Points in Scenarios
Solution
Jenkins monitors code commits/merge requests in the customer’s code repository, and tests are triggered immediately after code submission—greatly improving CI pipeline efficiency.
Using the Jenkins plugin as a communication intermediary, it encapsulates the API call logic of UDT services, transmits Jenkins’ build artifacts and deployment instructions to the UDT server, and UDT executes the actual deployment operations. The results are then synchronized back to Jenkins, ultimately enabling end-to-end automation of the “build-deployment” workflow.
Throughout the process, there is no need to manually log in to the UDT Platform—all operations are triggered via Jenkins configurations or pipelines, aligning with CI/CD closed-loop requirements.




Open the Manage Jenkins interface and navigate to System.

Scroll down the page to find the UDT Automation Config section, then fill in the required information:
Click Apply and Save.

If you need to pull script code from private Git repositories, you must first configure the credentials for accessing the corresponding Git repository in accordance with Jenkins documentation.


With the UDT Jenkins Plugin, users can execute tests on the local Jenkins server without uploading script code to the UDT Platform, ensuring high security.
Click New Item on the Jenkins dashboard, enter the item name, and select the desired type. The following shows the relevant settings for a Freestyle project:

Navigate to the Configure page. Under Source Code Management, select and associate a Git repository:

Click Add build step and select UDT Automation Test (only Python is supported by default currently):

Under Post-build Actions, set the archiving directory for files output as specified in the script. After configuration, the required generated files can be viewed in Jenkins.
Click Apply and Save after completing all settings.
Click Build Now on the left to start the test task directly.
Optional: Upload the package directly on Jenkins (no need to open the UDT Platform):

After the test task is built, you can view the entire test process and error messages in the Console Output.
Additionally, the UDT Jenkins Plugin supports refreshing the task after the test completes. Click UDT Test Report in the left sidebar to access the complete test result report. The report includes UDT Platform test device information, test report links, device-level reports, and case-level reports. You can view all test task results without opening or logging into the UDT Platform.




Download to See Pipeline Script & Python Script Demos

Note:
The subsequent task building, execution, and test report viewing processes are the same as those for the Freestyle project described above. Below is a demo of the Jenkins platform report for parallel testing on multiple devices:

If you have additional integration requirements or encounter integration-related issues, please contact us. We will arrange for test experts to understand your needs one-on-one and assist you with the testing.
Previous: Project Settings Next: UDT-Gitlab CI Integration 