Hi,
I'm still very new to groovy, so please forgive me if the answer to this seems obvious.
In my pipeline project, there are things I want to do at the start of every node, so they would look something like
node {
do_common_stuff
build_project
}
node {
do_common_stuff
test_project
}
Rather than adding "do_common_stuff" to every node, is it possible to extend node so that I simply write
myNode {
build_project
}
myNode {
test_project
}
and the do_common_stuff is executed before the content in the {} brackets?