How to NOT download artifacts from previous stages for build configuration?

9ilsdx 9rvj 0lo

I have a gitlab CI build process with 4 steps, in which artifacts produced in first step are packaged into docker image in 2nd step, then the output image is given as the artifact to 3rd step, and there is a 4th step afterwards, that notifies external service.

The 2nd step needs artifacts from step 1, the 3rd step need artifacts from step 2. This is done with 'dependencies'parameter and it works fine.

What is not working is the step 4, that need no artifacts. I've skipped the 'dependencies' block, then I've declared dependencies: [], but in both cases the both artifacts are downloaded!

How do I correct inform gitlab CI that the step has no dependencies? Or is it some bug in Gitlab CI?

dbrekelmans

As per the gitlab-ci documentation:

To disable artifact passing, define the job with empty dependencies:

job:
  stage: build
  script: make build
  dependencies: []

I've found the same issue here: https://gitlab.com/gitlab-org/gitlab-runner/issues/228

This seems to be fixed in: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10359

Please update your CI Runner to a newer version as that should fix it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to use japicmp to compare between artifacts generated in current and previous build

Why docker needs to build all the previous stages?

IBM DevOps Pipeline: How to Access Artifacts from Previous Job?

Azure pipeline build artifacts for previous builds

How to copy artifacts from NPM build to .NET Core deploy in TSFS

Android Gradle build error - artifacts for configuration ':classpath'

How to build/transform an object from a previous object

Access artifacts from previous run of same job

How to make Travis conditional build stages work?

Remove Catkin artifacts from CPack build

Start vNext build from Powershell and get artifacts

Upload Build artifacts from Jenkins Pipeline to Sharepoint

Copy artifacts from specific promoted build

How to store jenkins build output with artifacts?

How build artifacts are managed in Azure DevOps pipeline?

How to delete all build artifacts in TeamCity?

How to solve Jitpack "ERROR: No build artifacts found"?

How can I deploy artifacts from a Maven build to the SourceForge File Release System?

How to deploy an artifact from group of artifacts to jfrog artifactory using jenkins post build action

How to delete artifacts from Kubeflow?

Release pipeline - share Artifacts between docker stages

How to mark build success when one of the stages is aborted?

How to build a combination of parallel and sequential stages in Jenkins pipeline with dynamic data

Jenkins pipeline, how can I copy artifact from previous build to current build?

Is it possible to output and rename build artifacts from the TeamCity checkout directory (that are not archives)?

Making public s3 artifacts from AWS code build

Connect to Azure Artifacts Feed from docker image running on build agent

Unable to build Flink from sources due to MapR artifacts problems

How to automate the build from the following configuration using gulp

How to include/exclude source files from the project depending on the build configuration?