Skip to content

Commit

Permalink
Merge pull request #39 from srini-hv/master
Browse files Browse the repository at this point in the history
[DEVO-142] Creating target folder beforehand for archiving using shell command
  • Loading branch information
elrikose authored Apr 20, 2021
2 parents fab025a + 3873961 commit 273adf4
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 273adf4

Please sign in to comment.