【问题标题】:Does semantic-release support integration with Jenkins CI?语义发布是否支持与 Jenkins CI 的集成?
【发布时间】:2019-02-24 20:10:17
【问题描述】:

我在看semantic-release,想知道语义发布是否支持与 Jenkins CI 的集成?

当我查看CI configuration 时,我找不到任何 Jenkins 的配置细节。

谁能分享这方面的宝贵信息?

【问题讨论】:

    标签: node.js jenkins npm jenkins-pipeline semantic-release


    【解决方案1】:

    semantic-release 使用env-ci 来读取 CI 提供的环境变量,并且支持 Jenkins。 作为一般信息语义发布使用 CI 环境变量来确定: - 如果当前执行发生在 CI 上 - 正在构建的当前分支 - 如果当前构建是由 Pull Request 触发的

    因此支持branch 属性由env-ci 提供的任何CI。如果未提供 isPr 属性,semantic-release 将始终认为构建不是由 Pull Request 触发的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-26
      • 1970-01-01
      • 2019-03-21
      • 2023-03-24
      • 1970-01-01
      • 2014-03-15
      • 1970-01-01
      • 2021-12-18
      相关资源
      最近更新 更多