generated from gCubeCI/Pipeline-Docker-Template
change WORKSPACE var sintax
This commit is contained in:
parent
6040738a12
commit
9fa9903bf4
|
@ -85,7 +85,7 @@ pipeline {
|
|||
date=`date`;
|
||||
mkdir -p ${DEPLOY_FILE_ROOT_FOLDER}
|
||||
mkdir -p "${WORKSPACE}/CD"
|
||||
mv -v ${DEPLOY_FILE_ROOT_FOLDER} ${env.WORKSPACE}/CD
|
||||
mv -v "${DEPLOY_FILE_ROOT_FOLDER}" "${WORKSPACE}/CD"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ pipeline {
|
|||
// parse the report and extract the data
|
||||
// def components = getComponentsFromCSV(deployList)
|
||||
println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}"
|
||||
def components =getComponentsFromCSVDir3(${DEPLOY_FILE_ROOT_FOLDER})
|
||||
def components =getComponentsFromCSVDir3("${WORKSPACE}/CD")
|
||||
if (components.size() > 0) {
|
||||
def componentSet=components.toSet();
|
||||
for (component in componentSet) {
|
||||
|
@ -365,7 +365,7 @@ def getComponentsFromCSVDir2(def dirPath){
|
|||
@NonCPS
|
||||
def getComponentsFromCSVDir3(def dirPath){
|
||||
println "checking current folder"
|
||||
dh = new File(${env.WORKSPACE}+"/CD")
|
||||
dh = new File(dirPath)
|
||||
println "current folder path: "+dh.path
|
||||
// dh.eachFileRecurse {
|
||||
// println it
|
||||
|
|
Loading…
Reference in New Issue