Executing Scripts Using Jenkins Pipeline Workflow
A pipeline workflow is an automated sequence of steps managed by Jenkins, where scripts generated by algoQA are executed automatically as part of this workflow. This article provides the required details.
Prerequisites
- Installation steps for Java and Maven (In this article, the Java Installation steps are explained for JDK 21. Similarly, if you are using JDK 17 version, follow the steps described in Geeky Script article.)
- Installation steps for Jenkins
Configure Jenkins
For the detailed steps on Post-Installation Setup Wizard and configuring Java and Maven, see How to Set Up Wizard after Installing Jenkins and Configure Java and Maven in Jenkins articles.
Create a New Item and perform a pipeline run
Perform the following:
In the Jenkins Dashboard, click New Item.

In the New Item screen, enter the project name, select Pipeline, and click OK to go to the Configuration page.
By default, the General page is displayed.


In the General page while configuring, navigate to the Pipeline section and update the code in the Pipeline description along with the updated path.
This is applicable only to Java Selenium scripts generated using algoQA on the Windows operating system.


Update the path (the path is the location where the algoQA script is downloaded to the local folder):

Click Save to open the pipeline project.
In the Project page, click Build Now in the left pane.

After the build is triggered, progress is shown in the Build History.
Hover over the build number to view the down arrow. Select the down arrow to view the dropdown menu. In this menu, select Console Output to view the details for this particular pipeline run.

The details of the selected pipeline run can be accessed.
