I defined the global pipeline parameter by Configuring the pipeline I was able to access the global parameter set by the pipeline or jenkins inbuilt parameters such as BUILD_NUM