Gitlab-CI从依赖项跳过上传

时间:2020-04-24 15:16:03

标签: gitlab-ci

在gitlab ci管道中,我定义了一个作业,该作业下载一个较大的iso文件,并应将其作为输入参数提供给另一个作业。

download_iso_image:
stage: pre_build
image: jfrog-cli-go-docker-container-url
tags:
  - build
script: 
  - mkdir image
  - cd image
  - jfrog rt dl iso-to-download --flat
artifacts:
  paths:
    - image/

build_application:
image docker-image-to-work-with-the-iso-file
script:
  - do something with the iso
dependencies:
  - download_iso_image
artifacts:
  paths:
    -- prepared-image/

publish_image:
stage: release
dependencies:
  - build_application
tags:
  - build

默认情况下,作业成功后将上传工件。

是否可以在不将iso作为工件预先上传到gitlab的情况下,将“ download_iso_image”作业下载的iso文件用于我的“ build_application”作业中?目前,将iso上传到gitlab导致错误。

将这么大的文件上传到gitlab是否有意义?这些工件当前在那里存储了一个月。当然,有一个概念,那就是每次构建时都不必从网络上再次下载如此大的文件,这将是很好的选择。

0 个答案:

没有答案