Hands on with Jenkins
Freestyle and Pipeline project using Jenkins and Docker

On HashNode I would be sharing my understanding of the topic. My goal is to create helpful content for the community in making tech easy to learn. My audience can find practical and hands on about any topic related to IT infra including, DevOps and cloud.
We would be checking the options when to rebuild our project using
Build TriggersWe can either set up a buildthrough scripts or after some other project
after a specific time
through commits in a particular branch
when a pull request is made
through GitHub hooks (on w In
Build Stepswe would also type certain commands so that docker-compose run creates and runs a container throughYAMLfile
If we want to receive mail for failed builds we can also set up notifications.

We can also check the
Build historyin the left sidebar to see the console output for debugging.Also for commits, we can Click on
#Build numberto check the status of our build and for debugging purposes.
On port 8001 mentioned in yaml file our web application would be built.

Building the project in jenkin through pipeline
In the pipeline, we would be defining
stages(Code, Build, Test, Deploy) andstepsin pipeline script once we have created the project. Theconfigmenu would be having this option
pipelineis always written at top of the pipeline script fileagentdefines on which Operating system this code would be executed.stagesdefines SDLC stages andscriptare the commands that get executed on the host machine
Then through
Full Stage Viewwe can see all the stages
Our app would be built using the Jenkins pipeline and would be accessible according to the port defined in
DockerfileorYAMLfile.
References
- Train with Shubham Zero To Hero DevOps Bootcamp




