Jenkins Extended E-mail won't print $GIT_BRANCH or $GIT_COMMIT

后端 未结 1 591
醉酒成梦
醉酒成梦 2021-01-06 22:43

In the Jenkins \"Extended E-mail Notification\" plugin, I have created a table about the Build and Git reversion numbers, getting the values through the environment variable

1条回答
  •  一整个雨季
    2021-01-06 23:31

    Build variables, like $PROJECT_NAME and $BUILD_NUMBER are available directly, since they are created in this build session.

    For environment variables, you have to use the following syntax:
    ${ENV, var="GIT_COMMIT"}

    0 讨论(0)
提交回复
热议问题