[英]Email git changes using Jenkins Pipeline
我有一个附加了两个git repos的Jenkins管道,然后调用git.github.com/userbar/repo1
和git.github.com/userfoo/repo2
。 我现在在Jenkins脚本中拥有它,以至于最终的操作是通过电子邮件向我发送一条消息,其中包含“ foobar please fix me”。
这就是我现在所拥有的(部分内容)
finally {
DEFAULT_SUBJECT="project Blah Build: #${BUILD_NUMBER} - ${currentBuild.result}"
BODY="Commits made to project Blah:\n\n"
mail to: 'josh.kirby@wysdom.ai',
subject: "${DEFAULT_SUBJECT}",
body: "${BODY}"
}
弄清楚内部版本号和状态,对git的更改一无所知
DEFAULT_SUBJECT="project Blah Build: #${BUILD_NUMBER} - ${currentBuild.result}"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.