diff --git a/Jenkinsfile b/Jenkinsfile index 3092ad6..5aa0cea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -164,6 +164,8 @@ def parseCSVList(def deployList) { if (fileExists("${deployList}")) { echo ' file found' readFile("${deployList}").split('\n').each { line, count-> + if (line.startsWith('#')) + return def fields = line.split(',') components.add([ name : fields[0], @@ -192,11 +194,9 @@ def appendToFile(String fileName, String line) { def appendFooter( def File) { def now = new Date() sh(""" - echo "" >> $File - echo "---" >> $File - echo "*generated by the gCubeDeploy pipeline >> $File - echo "" >> $File - echo "*last update $now*" >> $File + echo "#---" >> $File + echo "#generated by the gCubeDeploy pipeline >> $File + echo "#last update $now*" >> $File """) }