In the Pipeline scripted syntax we use this syntax to declare specific steps to specific nodes:
steps{
node('node1'){
// sh
}
node('node2'){
// sh
}
}
But I want to use the Pipeline Declarative Syntax, can I put many agents?