fix println sintax; restored cron every 15'

This commit is contained in:
Roberto Cirillo 2022-09-09 11:24:19 +02:00
parent 3ab0b4bf24
commit 51746ad51a
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -38,9 +38,9 @@ pipeline {
triggers {
// every fifteen minutes (perhaps at :07, :22, :37, :52)
// cron('H/15 * * * *')
cron('H/15 * * * *')
// once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM)
cron('H H(9-16)/6 * * 1-5')
// cron('H H(9-16)/6 * * 1-5')
}
environment {
@ -292,8 +292,9 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
def getComponentsFromCSVDir(def dirPath){
File folder = new File(dirPath)
println "folder ready "
println ("folder ready ");
if (folder){
println (" processing folder "+folder);
folder.eachFileRecurse FileType.FILES, { file ->
// check it if the file ends with a .csv extension
if (file.name.endsWith(".csv")) {