如何将字符串附加到 Jenkins 变量 "BUILD_URL"

How to append string to Jenkins variable "BUILD_URL"

我正在使用 Cppcheck Plugin。 Jenkins 作业完成后,我正在尝试通过电子邮件发送 Cppcheck Results URL。

我尝试将 Default Content 设置为以下内容:

View this URL for Cppcheck Results: $BUILD_URL + "cppcheckResult/"

但是我收到的邮件有以下内容:

View this URL for Cppcheck Results: https://myurl/job/fscopy/7/+"cppcheckResult/"

谁能帮我弄清楚如何在以下电子邮件中发送正确的 URL:

https://myurl/job/fscopy/7/cppcheckResult/

我设法通过创建 CPPCHECK 环境变量并按如下方式使用它来解决它:

View this URL for Cppcheck Results: $BUILD_URL$CPPCHECK

这给我在电子邮件中的输出如下:

View this URL for Cppcheck Results: https://myurl/job/fscopy/7/cppcheckResult/