我想env在Jenkinsfile 中的对象中打印所有可用的属性(及其值).
当我做
print env
Run Code Online (Sandbox Code Playgroud)
我明白了:
org.jenkinsci.plugins.workflow.cps.EnvActionImpl@112cebc2
Run Code Online (Sandbox Code Playgroud)
所以看起来好像toString没有在那里实现,如果我不知道他们的名字怎么能访问这个对象中的属性?