GoCD Integration With LambdaTest
GoCD offers a free and open-source platform to help you configure robust CI/CD pipelines with ease. The intuitive UI offers an end-to-end view wherein you can visualize the entire migration path to production in a collective view. That way, you can easily pinpoint the inefficient areas to optimize the CI/CD process. By leveraging GoCD, you can achieve faster feedback loops through its modelling constructs which makes your complex CI/CD pipeline looks a lot simpler. You also get features like dependency management & parallel execution to help you deliver better products quicker.
LambdaTest integration with GoCD will help your perform Selenium test automation for your code changes on more than 3000+ real browsers for both mobile and desktop. You can trigger your Selenium testing scripts directly from GoCD instance and they would be executed over your LambdaTest automation dashboard.
Copy the YAML configuration file from our GitHub repository for GoCD.
LambdaTest Authentication Credentials 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:
$ export LT_USERNAME=
$ export LT_ACCESS_KEY=
- For Windows:
$ set LT_USERNAME=
$ set LT_ACCESS_KEY=
Make sure to install GoCD in your system.
Configuring GoCD Pipeline For LambdaTest Selenium Grid
Step 1: Visit your GoCD Dashboard and create a new pipeline by selecting the option to “Use Pipeline as Code”.
Step 2: Scroll-down to the section to “Register Your Pipelines as Code Repo with GoCD” and untick the box for using the same SCM repository.
Step 3: Provide the LambdaTest GitHub repository for GoCD as the repository URL. Test you connection and provide a label for this repository. In our case, we have provided the label as Sample-Pipeline, you may keep something else for your instance.
Step 4: After providing the GitHub repository, you will need to Scan it. Hit the highlighted button to Scan repository and you will notice that a respective YAML definition file would be through the repository.
Step 5: After scanning the repository, you need to scroll to bottom and hit finish. Make sure to specify the username and password under the advanced setting, for private repositories.
Step 6: Once you hit the finish button. Under the Config repositories, you will find the details of the repository as specified by you.
Step 7: Now, if you visit your GoCD dashboard, you will find the pipeline generated and the job in running state.
Step 8: If you open the pipeline and refer to the console then you will notice the current job status as passed.
Great work! You have successfully integrated your GoCD instance with your LambdaTest account. Follow our another documentation, if you wish to configure a private YAML and then integrate your GoCD pipeline with LambdaTest.