使用 RTC 和 jenkins 自动化 C++ 代码的构建过程

Automating Build Process of c++ code using RTC and jenkins

我想知道我们是否可以在开发人员交付更改并向他发送构建报告时自动构建构建。

我正在寻找可以在 Jenkins 中使用的 RTC 命令。到目前为止,我能够连接到 RTC,加载流并通过 Jenkins 在本地构建。

确保在目标流(发生交付的流)上定义一个工作区

然后,如JENKINS Team-Concert Plugin所述:

  • Find the "Build Triggers" section.
  • Check the "Poll SCM" check box to poll for incoming changes to the build workspace.
  • Enter a schedule. Click the help button beside the "Schedule" field to get help with the syntax.

然后您可以每 5 分钟检查一次已交付的新变更集,并以这种方式触发您的 Jenkins 构建(即轮询变更)。


对于邮件部分,独立于 RTC,您可以使用 JENKINS Email-ext plugin 以便在每次构建后发送电子邮件。
例如参见“How to send Email at every build with Jenkins

您会收到一封电子邮件,其中 link 指向 Jenkins 工作报告页面。