What is the difference between the following two? When do you have to use the node part and when not?
stage ("stage") {
node ("NodeName"){
xxx
}
}
vs
stage ("stage") {
xxx
}
I'm defining agent any in the beginning of my pipeline.