小编use*_*097的帖子

Jenkins:根据每个构建步骤发送电子邮件,结果是同一个Jenkins Job

我只是想知道如何根据同一个Jenkins Job上的每个构建步骤结果发送带有Email-ext插件电子邮件.这是我的情景

我的詹金斯工作有3个构建步骤

构建第1步:

   Pull latest code from github and Build the app - Gradle task which build the Jar
Run Code Online (Sandbox Code Playgroud)

构建Step2:

   Run all Tests against that Jar - Gradle Task which runs all Junit tests and provide Report files.
Run Code Online (Sandbox Code Playgroud)

后期制作行动:

   If Build step1 fails -> Send email telling Build fails and Console Log with Exception detials

   If Build success and Tests run -> Send email with Test Reports
Run Code Online (Sandbox Code Playgroud)

我想我需要为Email-Ext插件编写预发送脚本.但我不知道如何编写这个脚本.请协助.

email jenkins

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

email ×1

jenkins ×1