Example declarative pipeline code for project use.
The full usage of Declarative pipeline parameter is explained in https://devopscube.com/declarative-pipeline-parameters/
Please raise issues if you want more functionality to be added to the pipeline script.