gpt4 book ai didi

javascript - CircleCi 在 10 分钟后超时

转载 作者:行者123 更新时间:2023-11-30 11:17:18 41 4
gpt4 key购买 nike

我的配置通常会因 npm install 超时而失败。我有两个问题:

为什么no_output_timeout没有生效?也许有一种方法可以为特定步骤配置最大超时?

我的配置文件:

version: 2
jobs:
build:
docker:
- image: circleci/node:7.10
steps:
- checkout
- run: npm install
- run: npm run lint
- run: npm run test
no_output_timeout: 20m
deploy:
machine: true
steps:
- checkout
- run: npm install
- run: npm run build
- run: bash ./deploy.sh
no_output_timeout: 20m
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master

额外的问题:有没有办法用更好的 CPU 让它更快?

最佳答案

免责声明:我是 CircleCI 开发者倡导者

标记为正确的答案不是。该解决方案适用于 CircleCI 1.0,这不是您的配置,并且将在 60 天内停产。

根据您提供的配置,您可以:

version: 2
jobs:
build:
docker:
- image: circleci/node:7.10
steps:
- checkout
- run:
command: npm install
no_output_timeout: 20m
- run: npm run lint
- run: npm run test
deploy:
machine: true
steps:
- checkout
- run:
command: npm install
no_output_timeout: 20m
- run: npm run build
- run: bash ./deploy.sh

workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master

no_output_timeout 的文档是 here .

关于javascript - CircleCi 在 10 分钟后超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51077594/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com