In Jenkins, I am using ‘Validation String Parameter’ as one input parameter ‘COMPANY_NAME’.
I need to get it in groovy script in Build secion. Using the below code, I am unable to get the my custom build parameter.
import hudson.model.*
def companyName= System.getenv(“COMPANY_NAME”)
It returns null. How to get Jenkins build parameters in the Groovy script?