Leapwork provides the DevOps capabilities where Leapwork users can integrate and trigger Leapwork schedules via CI/CD Pipeline.
Although Leapwork provides a direct plugin to achieve this task and users can directly add Leapwork schedule as task in their release pipelines.
However, quite often users want to execute Leapwork schedules as part of their YAML build pipelines.
Below steps will show how this can be achieved and please make sure to add Leapwork plugin to Azure Devops instance by downloading and adding Leapwork plugin from below link: https://www.leapwork.com/services/learning-center/tfs-integration
1. Click on Pipelines and click on build pipeline as below:
2. If the user wants to create a new pipeline, they should click on the new pipeline and then sync the repository. On the other hand in the case of configuring Leapwork in the existing pipeline. Please click on the pipeline as shown in the screenshot below:
3. After selecting the pipeline, Click on Edit and below screen with standard YAML configuration will appear
4. In the Tasks, search for Leapwork and provide the configuration details like controller name, access key, schedule details etc as shown below
5. After providing the details, click on add and the corresponding YAML would automatically be added to the pipeline.yml file as shown below:
6. Click on save and save the pipeline. After the pipeline is saved, the user can run the pipeline by clicking on the option below:
Note: Please make sure that Azure Agent is running and listening to the jobs. Also, please make sure to change the pool value in the YAML configuration to the agent pool that would be in use(By default the agent pool in use is Default)
For any clarification, please contact our Priority Support.
Comments
0 comments
Please sign in to leave a comment.