Integration with Jenkins
You can use the HCL OneTest™ Server plugin to integrate HCL OneTest™ Server with Jenkins. After you complete the integration, you can run tests assets that are available in a project of HCL OneTest™ Server from a Jenkins server.
You must have installed Jenkins on your computer to install the HCL OneTest™ Server Jenkins plugin. You can run the following command to start the Jenkins server to support UTF-8 character sets:
java -Dfile.encoding=UTF8 -jar jenkins.war
You can use either the Jenkins Freestyle project or the Pipeline project to run test assets from Jenkins. With Freestyle project, you can create build step from the Jenkins UI to run the test assets. Whereas the Pipeline project uses a simple text scripts based on the Groovy programming language. You can define pipeline scripts during the configuration of the Pipeline project by using any of the following methods:
-
Pipeline script: In this method, you can directly enter a script in the field provided within the Jenkins UI or you can select a sample Pipeline script from the drop-down list.
-
Pipeline script from SCM: In this method, you can create a script with a Groovy editor and then commit the script file into the Git repository.
For more information about the Jenkins Pipeline, refer to the Jenkins documentation.
Refer to the following topics to learn more about integrating Jenkins with HCL OneTest™ Server.