Download test

This commit is contained in:
Ivan Fonarev 2023-10-27 23:52:05 +03:00
parent 0be02e2613
commit 873cd116a1

View file

@ -6,7 +6,7 @@ before_script:
# Defines stages which are to be executed # Defines stages which are to be executed
stages: stages:
- build - build
- artifact-download
# Stage "build" # Stage "build"
build-package: build-package:
stage: build stage: build
@ -23,6 +23,6 @@ build-package:
paths: paths:
- ./builds/artifact - ./builds/artifact
artifact_download: artifact_download:
stage: test 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"' - '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"'