mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
[FIXED JENKINS-5695] Jenkins sending too many emails for Maven module failure
This commit is contained in:
1 parent
e897ee7f34
commit
4b2e23b197
6 files changed
+97
-1
No files matched your search
@@ -185,6 +185,14 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
|
||||
* @since 1.223
|
||||
*/
|
||||
private boolean usePrivateRepository = false;
|
||||
|
||||
/**
|
||||
* If true, the build will send a failure e-mail for each failing maven module.
|
||||
* Defaults to <code>true</code> to simulate old behavior.
|
||||
* <p>
|
||||
* see JENKINS-5695.
|
||||
*/
|
||||
private Boolean perModuleEmail = Boolean.TRUE;
|
||||
|
||||
/**
|
||||
* If true, do not automatically schedule a build when one of the project dependencies is built.
|
||||
@@ -436,6 +444,10 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
|
||||
return usePrivateRepository;
|
||||
}
|
||||
|
||||
public boolean isPerModuleEmail() {
|
||||
return perModuleEmail;
|
||||
}
|
||||
|
||||
public boolean ignoreUpstremChanges() {
|
||||
return ignoreUpstremChanges;
|
||||
}
|
||||
@@ -665,6 +677,10 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
|
||||
}
|
||||
postbuilders.setOwner(this);
|
||||
|
||||
if(perModuleEmail == null){
|
||||
perModuleEmail = Boolean.TRUE;
|
||||
}
|
||||
|
||||
updateTransientActions();
|
||||
}
|
||||
|
||||
@@ -987,6 +1003,7 @@ public class MavenModuleSet extends AbstractMavenProject<MavenModuleSet,MavenMod
|
||||
mavenName = req.getParameter("maven_version");
|
||||
aggregatorStyleBuild = !req.hasParameter("maven.perModuleBuild");
|
||||
usePrivateRepository = req.hasParameter("maven.usePrivateRepository");
|
||||
perModuleEmail = req.hasParameter("maven.perModuleEmail");
|
||||
ignoreUpstremChanges = !json.has("triggerByDependency");
|
||||
runHeadless = req.hasParameter("maven.runHeadless");
|
||||
incrementalBuild = req.hasParameter("maven.incrementalBuild");
|
||||
|
||||
Reference in new issue
Block a user