Introduction
When you automate software builds and tests, you need to organize tasks clearly and decide where they run. Node blocks tell Jenkins which machine to use, and stage blocks divide the work into clear steps.
When you want to run your build on a specific machine or environment.
When you want to split your pipeline into clear steps like build, test, and deploy.
When you want to see progress and results for each step separately in Jenkins.
When you want to control resources by choosing which node runs which part of the pipeline.
When you want to make your pipeline easier to read and maintain.