Configuring the Pipeline project by using the script from SCM
You can configure the Pipeline project to use the pipeline script from the Source Code Management (SCM), and then run test assets that are available in the HCL OneTest™ Server project from the Jenkins Pipeline project.
Before you begin
You must have completed the following tasks:
-
Installed the HCL OneTest™ Server Jenkins plugin on the Jenkins server. See Installing the HCL OneTest Server Jenkins Plugin.
-
Created a pipeline script and committed the script to the Git repository. For more information, refer to the Jenkins documentation.
-
Been granted administrator permission of the Jenkins server to add credentials into Jenkins.
-
Added your GitHub credentials into Jenkins. For more information about adding global credentials, refer to the Jenkins documentation.
-
Created a Jenkins Pipeline project.
About this task
Procedure
- Open your Jenkins Pipeline project from the list.
- Click Configure, and then select the Pipeline tab.
- Select the Pipeline script from SCM option in the Definition field.
- Select the Git option from the drop-down list in the SCM field.
- Enter the URL of the Git repository in the Repository URL field where you stored your pipeline script.
- Select the credentials of the Git repository from the drop-down list.
- Optional: Enter the branch name of the Git repository in the Branch Specifier field.
- Enter the path of the script that you stored in the Git repository in the Script path field.
- Click Save.