-
Go to https://www.jenkins.io/
-
Download
java .war
-
Drag the downloaded file into the project IDE
-
In the IDE terminal run
npm run jenkins
-
Go to http://localhost:8080
-
Copy your generated admin password
-
Install all recommended plugins
- create admin user
Approve Instance Configuration for Jenkins URL at http://localhost:8080/
In Jenkins admin dashboard Create new Item
- Give item name
Select Freestyle project
scroll down and click OK
In the build config General tab
• give project description
• select use custom workspace
• in IDE terminal run command pwd
and copy the folder address
• give display name
- Enter content to create parameterized build
In the choices
cy:run:chrome
cy:run:firefox
cy:run:electron
cy:run-dashboar
In the description
Select the testing method:
1. chrome
2. firefox
3. electron
4. cypress dashboard
In the build section select option Execute shell
and enter npm run "$script"
Hit save and enjoy run the build🚀