server: properly copy circle artifacts to subfolders

This commit is contained in:
Brian Mann
2017-09-16 20:59:18 -04:00
parent 8e56bbd1fb
commit 394a4911ea
+11 -3
View File
@@ -381,11 +381,19 @@ module.exports = {
log("Should copy Circle Artifacts?", shouldCopy)
if shouldCopy
log("Copying Circle Artifacts", ca)
log("Copying Circle Artifacts", ca, videosFolder, screenshotsFolder)
## copy each of the screenshots and videos
## to artifacts using each basename of the folders
Promise.join(
ss.copy(screenshotsFolder, ca)
video.copy(videosFolder, ca)
ss.copy(
screenshotsFolder,
path.join(ca, path.basename(screenshotsFolder))
),
video.copy(
videosFolder,
path.join(ca, path.basename(videosFolder))
)
)
allDone: ->