sách gpt4 ai đã đi

jenkins-pipeline - Tiếp tục Tekton pipeline sau khi lỗi (tương tự như hành vi catchError của jenkins pipeline)

In lại 作者:行者123 更新时间:2023-12-04 02:36:07 39 4
mua khóa gpt4 Nike

我有一个我想要的管道:

  • 提供一些资源,
  • 运行一些测试,
  • 拆资源。

  • 我希望第 3 步中的拆卸任务运行 不管 测试是否通过或失败,在第 2 步。据我所知 runAfter如果前一个任务成功,则只运行一个任务。

    我试着调查 Conditions ,但是好像找不到例子……

    我可以使用的其他任何东西或有人可以指出我的一些例子吗?

    1 Câu trả lời

    “最终”条款在 Tekton Pipelines 中实现(20 年 4 月)

    apiVersion: tekton.dev/v1beta1
    kind: Pipeline
    metadata:
    name: pipeline-with-final-tasks
    spec:
    tasks:
    - name: pre-work
    taskRef:
    Name: some-pre-work
    - name: unit-test
    taskRef:
    Name: run-unit-test
    runAfter:
    - pre-work
    - name: integration-test
    taskRef:
    Name: run-integration-test
    runAfter:
    - unit-test
    finally:
    - name: cleanup-test
    taskRef:
    Name: cleanup-cluster
    - name: report-results
    taskRef:
    Name: report-test-results

    设计文档:设计文档: https://docs.google.com/document/d/1lxpYQHppiWOxsn4arqbwAFDo4T0-LCqpNa6p-TJdHrw/edit#

    关于jenkins-pipeline - 失败后继续 Tekton 管道(类似于 jenkins 管道 catchError 行为),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61749975/

    39 4 0
    Bài viết được đề xuất: Python 多处理抛出 Killed : 9
    Bài viết được đề xuất: php - 获取文件的独占读/写锁以进行原子更新
    Bài viết được đề xuất: c# - 无法安装 dotnet-aspnet-codegenerator 工具
    Bài viết được đề xuất: python - 如何在 plotly python 中引用日期设置色标
    行者123
    Hồ sơ cá nhân

    Tôi là một lập trình viên xuất sắc, rất giỏi!

    Nhận phiếu giảm giá Didi Taxi miễn phí
    Mã giảm giá Didi Taxi
    Giấy chứng nhận ICP Bắc Kinh số 000000
    Hợp tác quảng cáo: 1813099741@qq.com 6ren.com