【问题标题】:Share result of a step between different jobs in CircleCi在 CircleCi 中的不同作业之间共享步骤的结果
【发布时间】:2018-05-20 08:09:54
【问题描述】:

我在 CircleCi 中有这个通用的 config.yml

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:7.10
    steps:
      - checkout
      - run: npm install
      - run: npm run lint
  deploy:
    machine: true
    steps:
      - checkout
      - run: npm install
      - run: npm run build

如您所见,npm install 被调用了两次,这是重复任务。

是否可以在两个作业之间共享npm install 的结果? 最终目标是只安装一次软件包。

【问题讨论】:

    标签: docker circleci circleci-2.0


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2020-01-09
    • 2021-03-27
    • 2022-08-06
    • 2019-06-17
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2015-08-26
    相关资源
    最近更新 更多