ok, great thanks it now have a scope of operation, that was not clear with the error message (at first I was under the impression I needed to give it an argument of some sort:
stage([name:'checkout', block: ???]) Now it's clear. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8d1d6a5d-0b1d-441f-ac78-e05d553e2cac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.