Get absolute path to workspace directory in Jenkins Pipeline plugin

前端 未结 4 1937
南方客
南方客 2020-12-01 15:21

I\'m currently doing some evaluation on the Jenkins Pipeline plugin (formerly know as Workflow plugin). Reading the documentation I found out that I currently cannot retriev

4条回答
  •  粉色の甜心
    2020-12-01 16:11

    For me WORKSPACE was a valid property of the pipeline itself. So when I handed over this to a Groovy method as parameter context from the pipeline script itself, I was able to access the correct value using "... ${context.WORKSPACE} ..."

    (on Jenkins 2.222.3, Build Pipeline Plugin 1.5.8, Pipeline: Nodes and Processes 2.35)

提交回复
热议问题