InterviewSolution
| 1. |
What is the difference between Agent and Node? |
|
Answer» Agent: The straightforward answer is, Node is for scripted pipelines & Agent is for declarative pipelines. In declarative pipelines, the agent directive is utilized for determining which agent /slave the job/task is to be executed on. This mandate just enables you to indicate where the undertaking is to be executed, which agent, slave, mark or docker IMAGE. In scripted pipelines, the node step can be utilized for executing a script/advance on a particular agent, mark, slave. The node step alternatively takes the operator or name and AFTERWARD a conclusion with code that will be executed on that node. The declarative pipelines is another augmentation of the pipeline DSL (it is fundamentally a pipeline content with just one STAGE, a pipeline venture with contentions (called directives), these directives ought to pursue a particular language STRUCTURE. The purpose of this new arrangement is that it is progressively exacting and accordingly ought to be simpler for those new to pipelines, take into account graphical ALTERING and considerably more. scripted pipelines are the fallback for cutting edge prerequisites. |
|