I've the same problem with a date parameter. Name: BUILD_YEAR, Date format: yyyy, Default: LocalDate.now(); It is really strange, sometimes is it working, sometimes not. When I try to access the environment in a pipeline script with getEnvironment method of hudson.model.FreeStyleBuild I get an exception java.lang.IllegalArgumentException: Null value not allowed as an environment variable: BUILD_YEAR When I look in the web page of exactly this build in the "Environment" section the environment variable is properly set. It is definitely not empty. The build.xml of this build contains: <me.leejay.jenkins.dateparameter.DateParameterValue plugin="date-pa...@0.0.3"> <name>BUILD_YEAR</name> <description>Year to use in copyright string (1985-yyyy)</description> <value>2018</value> <value defined-in="me.leejay.jenkins.dateparameter.DateParameterValue">2018</value> <dateFormat>yyyy</dateFormat> </me.leejay.jenkins.dateparameter.DateParameterValue> InjectedEnvVars.txt of this build contains: BUILD_YEAR=2018 For me it is a blocker because I've no chance to check the build parameters of a former build in a pipeline script. |