There are no items in your cart
Add More
Add More
Item Details | Price |
---|
Learn how to create Jenkins CD pipeline to build node.js and react application
This tutorial will show how to create a Jenkins Continuous Delivery Pipeline to build Node.js and React application using npm. Pipeline will be created using a Pipeline script which will be committed into a Github repository. This is the foundation of “Pipeline-as-Code”, which treats the continuous delivery pipeline as a part of the application to be versioned and reviewed like any other code.
Also there will be separate Jenkins and Node containers running on Docker. The Node container becomes the agent that Jenkins uses to run the Pipeline project.
Prerequisites:–
Steps to create a Continuous Delivery Pipeline:
1. Login into Jenkins and click on New Item.
2. In the Enter an item name field, specify the name for your new Pipeline project “simple-node-js-react-npm-app”
3. Click to select Pipeline and click on OK.
4. Provide a brief description for your Pipeline in the Description field “An entry-level Pipeline demonstrating how to use Jenkins to build a simple Node.js and React application with npm”.
9. Click Save to save your new Pipeline project.
10. Using your favourite text editor or IDE, create and save new text file with the name JenkinsFile at the root of your local project.
11. Copy the following Declarative Pipeline code and paste it into your empty JenkinsFile:
12. Add, Commit and Push the changes into the Github repository.
13. Go back to Jenkins Dashboard.
14. Click on Open Blue Ocean.
15. Click on Run to start running your pipeline job.
16. Build stage which is defined in the Jenkinsfile contains the following steps:
15. Test stage contains the following steps:
16. Deliver stage contains the following steps:
Bijan Patel
Full Stack Test Automation Expert | Selenium Framework Developer | Certified Tosca Automation Specialist | Postman | DevOps | AWS | IC Agile Certified | Trainer | Youtuber | Blogger|