Groovy DSL scripts to customize your workflow with Jenkins 2.x
Just replace the variables values which are necessary to call functions and insert functions to your code or use them in global variables.
I'll publish the post in my blog about Jenkins tips at the end of July 2017.