简体   繁体   English

使用Jenkins Pipeline更改git电子邮件

[英]Email git changes using Jenkins Pipeline

I have a Jenkins pipeline that has two git repos attached to it, call then git.github.com/userbar/repo1 and git.github.com/userfoo/repo2 . 我有一个附加了两个git repos的Jenkins管道,然后调用git.github.com/userbar/repo1git.github.com/userfoo/repo2 I have it so right now in the Jenkins script that the final action is that it emails me a message with 'foobar please fix me' in it. 我现在在Jenkins脚本中拥有它,以至于最终的操作是通过电子邮件向我发送一条消息,其中包含“ foobar please fix me”。

This is what I have right now (well parts of it) 这就是我现在所拥有的(部分内容)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM