How to retrieve current workspace using Jenkins Pipeline Groovy script?

后端 未结 7 1114
独厮守ぢ
独厮守ぢ 2020-12-29 20:03

I am trying to get the current workspace of my Jenkins build using a Groovy pipeline script:

node(\'master\') {
    // PULL IN ENVIRONMENT VARIABLES
    // J         


        
相关标签:
7条回答
  • 2020-12-29 20:58

    In Jenkins pipeline script, I am using

    targetDir = workspace
    

    Works perfect for me. No need to use ${WORKSPACE}

    0 讨论(0)
提交回复
热议问题