Skip to content

Commit

Permalink
[DEVO-142] Creating target folder for shell copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas Bommadevara committed Apr 20, 2021
1 parent df981c7 commit 3873961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/hitachivantara/ci/FileUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}


Expand Down

0 comments on commit 3873961

Please sign in to comment.