Retrieve all properties of env in Jenkinsfile

前端 未结 3 1369
青春惊慌失措
青春惊慌失措 2020-12-18 18:57

I would like to print all available properties (and their values) in env object inside Jenkinsfile.

When I do

print env
<
3条回答
  •  一个人的身影
    2020-12-18 19:19

    As said over here: https://stackoverflow.com/a/42138466/618253

    The declarative pipeline way of doing things:

    node {
       echo sh(returnStdout: true, script: 'env')
    }
    

提交回复
热议问题