我们可以用变量定制返回给jenkins中gerrit的消息吗?

我们可以用变量定制返回给jenkins中gerrit的消息吗?,jenkins,gerrit-trigger,Jenkins,Gerrit Trigger,在Jenkins中,我们可以自定义构建消息,我想知道是否可以在内部使用变量 像下面的${PORT} 在2017.03.31更新,看起来已经有问题了我认为您可以使用格式为的任何作业参数和格式为$variable的任何构建环境变量 Gerrit插件帮助中的(“?”)是这样写的: The following standard <PARAMETER> values are available: GERRIT_NAME: The Gerrit project name. CHANGE_ID

在Jenkins中,我们可以自定义构建消息,我想知道是否可以在内部使用变量

像下面的
${PORT}


在2017.03.31更新,看起来已经有问题了

我认为您可以使用格式为
的任何作业参数和格式为$variable的任何构建环境变量

Gerrit插件帮助中的(“?”)是这样写的:

The following standard <PARAMETER> values are available:

GERRIT_NAME: The Gerrit project name.
CHANGE_ID: The Gerrit Change-Id (SHA-1).
BRANCH: The branch of the project.
CHANGE: The change number.
PATCHSET: The patchset number.
PATCHSET_REVISION: The patchset revision.
REFSPEC: The ref-spec. (refs/changes/xx/xxxx/z).
BUILDURL: The URL to the build.
VERIFIED: The verified vote.
CODE_REVIEW: The code review vote.
NOTIFICATION_LEVEL: The notification level. (always ALL)
The following special <PARAMETER> values are available:

STARTED_STATS: The number of builds started out of the total triggered like "(1/3)". If there is only one build triggered then the value is empty.

You can also use any environment variable from the build that was started with the $ENV_VAR syntax.
以下标准值可用:
GERRIT_名称:GERRIT项目名称。
变更ID:Gerrit变更ID(SHA-1)。
分支:项目的分支。
零钱:零钱号码。
补丁集:补丁集编号。
补丁集修订版:补丁集修订版。
参考规范:参考规范(参考/变更/xx/xxxx/z)。
BUILDURL:指向生成的URL。
已验证:已验证的投票。
代码审查:代码审查投票。
通知级别:通知级别。(总是全部)
以下特殊值可用:
STARTED_STATS:触发的总生成数中启动的生成数,如“(1/3)”。如果只触发了一个生成,则该值为空。
您还可以使用以$ENV_VAR语法启动的构建中的任何环境变量。

不,它不起作用,就像“$GERRIT\u PORT”`。这是针对构建消息not normal build step我从您的问题中了解到,您试图在构建消息中使用环境变量,而不是在构建步骤中使用gerrit触发器插件变量。