How to list all `env` properties within jenkins pipeline job?

前端 未结 15 1788
情深已故
情深已故 2020-11-30 22:20

Given a jenkins 2.1 build pipeline, jenkins injects a env variable into the node{}. For example, BRANCH_NAME can be accessed with

15条回答
  •  感情败类
    2020-11-30 22:54

    I suppose that you needed that in form of a script, but if someone else just want to have a look through the Jenkins GUI, that list can be found by selecting the "Environment Variables" section in contextual left menu of every build Select project => Select build => Environment Variables

提交回复
热议问题