I would like to print all available properties (and their values) in env object inside Jenkinsfile.
env
When I do
print env
To retrieve all env properties using a Jenkinsfile written in either declarative or scripted DSL you can use:
sh 'env'
or
sh 'printenv'