Access a Groovy variable from within shell step in Jenkins pipeline

前端 未结 4 1340
无人共我
无人共我 2020-12-05 09:59

Using the Pipeline plugin in Jenkins 2.x, how can I access a Groovy variable that is defined somewhere at stage- or node-level from within a sh step?

Si

4条回答
  •  甜味超标
    2020-12-05 10:15

    In order to Pass groovy parameters into bash scripts in Jenkins pipelines - Use this post here

提交回复
热议问题