首页 新闻 会员 周边

如何让gitlab ci持续集成的不同stage使用同一个容器

0
悬赏园豆:100 [待解决问题]

.gitlab-ci.yml 是这么写的

image: microsoft/aspnetcore-build:latest

stages:
  - build
  - test

build_solution:
  stage: build
  script:
    - bash build.sh

integration_test:
  script:
    - bash test.sh

gitlab ci runner 会在 build 与 test 阶段分别启动不同的容器,这样在 test 阶段又要进行对项目进行 build ,影响了持续集成的执行速度,有没有办法可以让 build 与 test 在同一个容器中进行?

dudu的主页 dudu | 高人七级 | 园豆:30994
提问于:2018-03-27 17:38
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册