Member-only story
One of the easiest ways to build and run Javascript applications for testing before the production stage: Using the “Docker Plugin” as an agent in Jenkins.
In this article, we will see how to use the Docker plugin in Jenkins, which is the easiest way to build Javascript applications using Yarn or run Java scripts using NodeJs, step by step. It will allow us to build or run the Javascript code on the containers that will be created without the need for Docker settings, and without typing a Docker file. Easily and effortlessly.

Topics we will cover:
2. Installing the Docker plugin.
3. Preparing the Jenkins file to use in the Jenkins pipeline
4. Preparing the Jenkins pipeline to use the Docker plugin
If you like the article, I will be happy if you click on the Medium Following button to encourage me to write more, and not miss future articles.
Your clap, follow, or subscribe, they help my articles to reach the broader audience. Thank you in advance for them.
1. What is the Docker plugin?

The Docker plugin will have our application run in a Docker container on our behalf in a Virtual host(agent) created by the Docker plugin. It allows easily us to test our artifacts “for real” before releasing them to production.
Thanks to the Docker plugin, we can build or run the Javascript code on the containers to be created, without the need to write a Docker file, and without dealing with Docker…