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
|
// parse the report and extract the data
|
||||||
// def components = getComponentsFromCSV(deployList)
|
// def components = getComponentsFromCSV(deployList)
|
||||||
println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}"
|
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) {
|
if (components.size() > 0) {
|
||||||
def componentSet=components.toSet();
|
def componentSet=components.toSet();
|
||||||
for (component in componentSet) {
|
for (component in componentSet) {
|
||||||
|
@ -389,10 +389,11 @@ def getComponentsFromCSVDir4(def dirPath){
|
||||||
OLDIFS=$IFS
|
OLDIFS=$IFS
|
||||||
IFS=','
|
IFS=','
|
||||||
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
|
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
|
||||||
while read componentname version
|
while read artifactid version host
|
||||||
do
|
do
|
||||||
echo "Name : $componentname"
|
echo "Component name : $artifactid"
|
||||||
echo "DOB : $version"
|
echo "Component version : $version"
|
||||||
|
echo "Target host : $host"
|
||||||
done < $INPUT
|
done < $INPUT
|
||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue