From 6951c87314e936bd3a4255e4598984dc7366e379 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Thu, 29 Aug 2019 17:40:43 -0400 Subject: [PATCH] List and print current files. --- Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ad47178..1a4ec21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,16 @@ import groovy.json.JsonSlurper +import groovy.io.FileType + +def files = [] +def dir = new File(".") +dir.eachFileRecurse (FileType.FILES) { file -> + files << file +} + +files.each { + println it.path +} -echo `ls -lrt */*` //check and parse the release file def inputFile = new File(".\\releases\\gcube-${params.gCube_release_number}.json") assert inputFile.exists() : "Release file not found (expected gcube-${params.gCube_release_number}.json)"