LambdaTestAutomation Testing ● Integrating Your Jenkins Pipeline With LambdaTest

Integrating Your Jenkins Pipeline With LambdaTest

Jenkins Pipeline is also referred to as “Pipeline” offers a suite of plugins to help integrate your continuous delivery pipeline into Jenkins. Jenkins Pipeline does so with the help of Pipeline DSL(Domain Specific Language) syntax that facilitates easy modelling of even the most complex delivery pipeline.

Prerequisites For Configuring Jenkins Pipeline With LambdaTest

  1. Jenkins 2.X or greater version.
  2. A Jenkins User with root access.
  3. Ensure you have the Pipeline plugin, although, it is displayed under the “suggested plugins” during the post-installation setup of Jenkins.
  4. LambdaTest Authentication Credentials
  5. Be aware of your LambdaTest authentication credentials i.e. your LambdaTest username, access key and HubURL. You need to set them up as your environment variables. You can retrieve them from your LambdaTest automation dashboard by clicking on the key icon near the help button.

    • For Linux/Mac:
    • For Windows:

Setting Up Jenkins Pipeline

You can find the Jenkins file for the Pipeline here or you can find the code for the Pipeline below.
Below is the code for the Jenkins Pipeline.

Refer to our Github sample repository. Now, follow the below steps for the setup.

Step 1: Create a new project for Pipeline by going to Jenkins –> New Item.

Step 2: Select the Pipeline.

Step 3: Scroll down to Advanced Project Options. Paste the Code in the code pane or fetch it via SCM & hit the Save button.

Note: To run on the tunnel, Either you can use LT_TUNNEL Environment variable to set the tunnelling capability or you can pass in the code. Instructions on the tunnel are written in Repo Readme file.