In Jenkins about to define an agent is possible use either:
#1
agent {
label 'something'
}
#2
agent {
node {
label 'something'
}
}
Both work, but when is mandatory use an approach over the other?
In Jenkins about to define an agent is possible use either:
#1
agent {
label 'something'
}
#2
agent {
node {
label 'something'
}
}
Both work, but when is mandatory use an approach over the other?