From 387396130d1333d5bdf1ed0cdcfeb0f4fd81311f Mon Sep 17 00:00:00 2001 From: Srinivas Bommadevara Date: Tue, 20 Apr 2021 16:05:50 +0530 Subject: [PATCH] [DEVO-142] Creating target folder for shell copy --- src/org/hitachivantara/ci/FileUtils.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/hitachivantara/ci/FileUtils.groovy b/src/org/hitachivantara/ci/FileUtils.groovy index fa25b3b..bb5ad9d 100644 --- a/src/org/hitachivantara/ci/FileUtils.groovy +++ b/src/org/hitachivantara/ci/FileUtils.groovy @@ -134,8 +134,9 @@ class FileUtils { static void shellCopy(def source, def target) { FilePath sourcePath = create(source) FilePath targetPath = create(target) + FilePath targetFolder = targetPath.getParent() + steps.sh "mkdir -p ${targetFolder}" steps.sh "cp -fR ${sourcePath} ${targetPath}" - // steps.log.info "Copied ${sourcePath} to ${targetPath} using shell" }