I would like to add something like
myStage()
to a Jenkinsfile. myStage() is defined in a shared library and contains a whole stage. Is this possible? I read that I can put individual steps and whole pipelines into groovy functions, but are stages possible as well?