gitlab ci/cd monorepo передача артефактов из одной stage в другую без их upload
у меня следующий gitlab-ci.yml
stages:
- compile
- build
compile:
image: $NEXUS_URL/repository/docker-group/maven:latest
stage: compile
script:
- mvn clean package -Dmaven.test.skip=true
artifacts:
paths:
- target/*.jar
only:
- master
build-master:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:17.12.1-dind
before_script:
- docker login -u "gitlab" -p "$REGISTRY_PASS" $NEXUS_URL
dependencies:
- compile
needs:
- compile
script:
- docker build -t $NEXUS_URL/repository/docker-group/project-for-ci-cd-gaming:master -f Dockerfile .
- docker push $NEXUS_URL/repository/docker-group/project-for-ci-cd-gaming:master
only:
- master
после stage compile выполняется uploading artifacts, который занимает порядка 30 минут как я могу передать артефакты из stage в другую без долго процесса uploading артефактов? После выполнения job возможность скачать артефакты не нужна