generated from gCubeCI/Pipeline-Docker-Template
rename function
This commit is contained in:
parent
b7853644e0
commit
5fca2943ed
|
@ -72,7 +72,7 @@ pipeline {
|
||||||
echo 'Cron build enabled. Deploy from system ongoing'
|
echo 'Cron build enabled. Deploy from system ongoing'
|
||||||
script {
|
script {
|
||||||
// parse the report and extract the data
|
// parse the report and extract the data
|
||||||
def components = parseCSVList(deployList)
|
def components = estractComponentsFromCSV(deployList)
|
||||||
if (components.size() > 0) {
|
if (components.size() > 0) {
|
||||||
for (component in components) {
|
for (component in components) {
|
||||||
stage(component){
|
stage(component){
|
||||||
|
@ -177,8 +177,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//parse a csv file formatted in this way: ComponentName,ComponentVersion
|
//parse a csv file formatted in this way: ComponentName,ComponentVersion, ComponentHost
|
||||||
def parseCSVList(def deployList) {
|
def estractComponentsFromCSV(def deployList) {
|
||||||
def components = []
|
def components = []
|
||||||
if (fileExists("${deployList}")) {
|
if (fileExists("${deployList}")) {
|
||||||
echo 'file found'
|
echo 'file found'
|
||||||
|
|
Loading…
Reference in New Issue