Download test

This commit is contained in:
Ivan Fonarev 2023-10-27 23:55:35 +03:00
parent 873cd116a1
commit 247e62f3e5

View file

@ -25,4 +25,7 @@ build-package:
artifact_download: artifact_download:
stage: artifact-download stage: artifact-download
script: script:
- 'curl --location --output artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/main/download?job=build-package"' - 'curl --location --output ~/builds/downloaded_artifacts/artifacts.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/main/download?job=build-package"'
- cd ~/builds/downloaded_artifacts
- unzip artifacts.zip
- rm artifacts.zip