How can I pass artifacts to another stage?

前端 未结 2 1379
滥情空心
滥情空心 2020-12-22 20:43

I\'d like to use GitLab CI with the .gitlab-ci.yml file to run different stages with separate scripts. The first stage produces a tool that must be used in a later stage to

2条回答
  •  猫巷女王i
    2020-12-22 20:50

    Use dependencies. With this config test stage will download the untracked files that were created during the build stage:

    build:
      stage: build
      artifacts:
        untracked: true
      script:
        - ./Build.ps1
    
    test:
      stage: test
      dependencies: 
        - build
      script:
        - ./Test.ps1
    

提交回复
热议问题