我只是想知道如何根据同一个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插件编写预发送脚本.但我不知道如何编写这个脚本.请协助.