How to retrieve Jenkins build parameters using the Groovy API?

前端 未结 10 2177
忘掉有多难
忘掉有多难 2020-12-09 07:55

I have a parameterized job that uses the Perforce plugin and would like to retrieve the build parameters/properties as well as the p4.change property that\'s set by the Perf

10条回答
  •  感动是毒
    2020-12-09 08:28

    The following can be used to retreive an environment parameter:

    println System.getenv("MY_PARAM") 
    

提交回复
热议问题