且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为了打通环境变量构建状态

更新时间:2022-02-23 22:03:55

为什么要使用ANT从詹金斯发送电子邮件,当你有两个伟大的插件,做到了这一点?

Why use ANT to send emails from Jenkins when you have two great plugins that does just that?

默认的邮件通知是相当不错的,如果你想有更多的控制结果
我建议使用 电子邮件-EXT插件 一>这是非常COM prehensive。

The default mail notification is quite good, and if you would like to have more control
I suggest using the Email-ext plugin which is very comprehensive.

如果仍然希望使用Ant来发送邮件,通知,包括状态结果
你将不得不打破你的过程分为两步,结果
其中,第一部分运行构建,第二个运行Ant脚本状态报告。

If still wish to use ANT to sent your mail-notifications including the status
you will have to break your process into two steps,
where the first part runs the build and the second one runs the ANT script to report the status.

在这种情况下,你需要通过在参数构建从第一份工作触发第二个作业插件 - 搜索
看到这里我的答案:结果
触发其它配置和发送与詹金斯

In this case, you will need to trigger the second job from the first job via the Parameterized Build plugin -
see my answer here:
trigger other configuration and send current build status with Jenkins