我有一个Groovy文件,需要在shell脚本中使用管道参数:
def call() {
echo "current build number: ${currentBuild.number}"
def pipelineValue = "${currentBuild.number}"
sh '''
cd /jenkins/jenkins/workspace/Run_Distribution_Self_Service/
mkdir -p builds/{pipelineValue }/libs/jfrog_distribution_shared_lib/resources/com/amdocs/python_distribution_util
'''
如何在shell脚本中获取pipelineValue并使用它?