Skip to content

Commit a37e107

Browse files
committed
ci: include buildroot/dl in final artifact to reduce the file counts
- Add `buildroot/dl` folder into the final zip archive to workaround large file upload issues. - This workaround not proven, just take a try - gitlab-runner 15.7.2 (0e7679e6) with gitlab 14.5.1 Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent f8ecb6d commit a37e107

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,17 @@ release_sources:
329329
- make snapshot
330330
- snapshot_zip=($(ls -t1 GENERATED/snapshot/snapshot_*.zip))
331331
- ls -lh ${snapshot_zip}
332-
- cp -f ${snapshot_zip} linuxsdk_${CI_COMMIT_REF_NAME//\//\_}_${CI_COMMIT_SHA::8}.zip
332+
- linuxsdk_zip=linuxsdk_${CI_COMMIT_REF_NAME//\//\_}_${CI_COMMIT_SHA::8}.zip
333+
- echo "Copy ${snapshot_zip} to ${linuxsdk_zip}"
334+
- cp -f ${snapshot_zip} ${linuxsdk_zip}
335+
# try to workaround ERROR: Uploading artifacts as "archive" to coordinator... 413 Request Entity Too Large
336+
# when uploading artifacts
337+
- echo "Adding buildroot/dl folder into ${linuxsdk_zip}"
338+
- zip -ur buildroot/dl ${linuxsdk_zip}
333339
- ls -lh linuxsdk_*.zip
334340
artifacts:
335341
name: "nuclei_linuxsdk-job${CI_JOB_ID}_${CI_COMMIT_SHA::8}"
336342
paths:
337-
- buildroot/dl
338343
- linuxsdk_*_${CI_COMMIT_SHA::8}.zip
339344
expire_in: 2 day
340345

0 commit comments

Comments
 (0)