generated from gCubeCI/Pipeline-Docker-Template
changed method version
This commit is contained in:
parent
3c928cd070
commit
8842ea81bb
|
@ -105,7 +105,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 =getComponentsFromCSVDir4("${WORKSPACE}/CD")
|
||||
def components =getComponentsFromCSVDir("${WORKSPACE}/CD")
|
||||
if (components.size() > 0) {
|
||||
def componentSet=components.toSet();
|
||||
for (component in componentSet) {
|
||||
|
@ -389,10 +389,11 @@ def getComponentsFromCSVDir4(def dirPath){
|
|||
OLDIFS=$IFS
|
||||
IFS=','
|
||||
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
|
||||
while read componentname version
|
||||
while read artifactid version host
|
||||
do
|
||||
echo "Name : $componentname"
|
||||
echo "DOB : $version"
|
||||
echo "Component name : $artifactid"
|
||||
echo "Component version : $version"
|
||||
echo "Target host : $host"
|
||||
done < $INPUT
|
||||
IFS=$OLDIFS
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue