Skip to content

Commit bfb2f55

Browse files
Merge pull request #1671 from cfengine/ENT-10487-2/master
Fixed copying artifacts directory from container
2 parents b6854e6 + 8d3427c commit bfb2f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/docker-build-package.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ docker exec -i $name bash -c "cd /data; ./buildscripts/ci/build.sh ${additional_
5555

5656
# save back cache and artifacts to host for handling by CI and such
5757
docker cp $name:/root/.cache/. "${NTECH_ROOT}/cache/"
58-
docker cp $name:/data/artifacts/. "${NTECH_ROOT}/artifacts/"
58+
docker exec $name find /data/artifacts
59+
docker exec $name tar Ccf $(dirname /data/artifacts) - $(basename /data/artifacts) | tar Cxf "${NTECH_ROOT}/artifacts/" -
5960

6061
rc=1 # if we find no packages, fail
6162
for f in artifacts/*.deb; do

0 commit comments

Comments
 (0)