generated from gCubeCI/Pipeline-Docker-Template
fix println sintax; restored cron every 15'
This commit is contained in:
parent
3ab0b4bf24
commit
51746ad51a
|
@ -38,9 +38,9 @@ pipeline {
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
// every fifteen minutes (perhaps at :07, :22, :37, :52)
|
// 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)
|
// 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 {
|
environment {
|
||||||
|
@ -292,8 +292,9 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
|
||||||
|
|
||||||
def getComponentsFromCSVDir(def dirPath){
|
def getComponentsFromCSVDir(def dirPath){
|
||||||
File folder = new File(dirPath)
|
File folder = new File(dirPath)
|
||||||
println "folder ready "
|
println ("folder ready ");
|
||||||
if (folder){
|
if (folder){
|
||||||
|
println (" processing folder "+folder);
|
||||||
folder.eachFileRecurse FileType.FILES, { file ->
|
folder.eachFileRecurse FileType.FILES, { file ->
|
||||||
// check it if the file ends with a .csv extension
|
// check it if the file ends with a .csv extension
|
||||||
if (file.name.endsWith(".csv")) {
|
if (file.name.endsWith(".csv")) {
|
||||||
|
|
Loading…
Reference in New Issue