Process Flow - Groovy methods in pipelines
Define method
Call method in pipeline
Method executes code block
Return result or perform action
Pipeline continues with method output
This flow shows how a Groovy method is defined and then called inside a Jenkins pipeline, executing its code and returning results before the pipeline continues.