diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
new file mode 100644
index 000000000..43d628161
--- /dev/null
+++ b/.mvn/extensions.xml
@@ -0,0 +1,7 @@
+
+
+ io.jenkins.tools.incrementals
+ git-changelist-maven-extension
+ 1.2
+
+
diff --git a/.mvn/maven.config b/.mvn/maven.config
new file mode 100644
index 000000000..2a0299c48
--- /dev/null
+++ b/.mvn/maven.config
@@ -0,0 +1,2 @@
+-Pconsume-incrementals
+-Pmight-produce-incrementals
diff --git a/pom.xml b/pom.xml
index 43e85a16e..e16952cb4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,8 @@
org.jenkins-ci.plugins
plugin
- 4.3
+ 4.8
+
@@ -17,7 +18,7 @@
email-ext
hpi
- 2.77-SNAPSHOT
+ ${revision}${changelist}
Email Extension Plugin
Allows to configure every aspect of email notifications: when an email is sent, who should receive it and what the email says
https://github.com/jenkinsci/email-ext-plugin
@@ -27,6 +28,9 @@
+ 2.77
+ -SNAPSHOT
+ jenkinsci/email-ext-plugin
8
2.164.3
2.57.2
@@ -315,9 +319,10 @@
- scm:git:https://github.com/jenkinsci/email-ext-plugin.git
- scm:git:git@github.com:jenkinsci/email-ext-plugin.git
- HEAD
+ scm:git:https://github.com/${gitHubRepo}.git
+ scm:git:git@github.com:${gitHubRepo}.git
+ https://github.com/${gitHubRepo}
+ ${scmTag}
@@ -375,4 +380,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java b/src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java
index 452eb3a3f..e01d5da1d 100644
--- a/src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java
+++ b/src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java
@@ -173,7 +173,7 @@ private Object evaluate(AbstractBuild, ?> build, TaskListener listener) throws
* @throws ObjectStreamException if the object cannot be restored.
* @see The Java Object Serialization Specification
*/
- private Object readResolve() throws ObjectStreamException {
+ protected Object readResolve() throws ObjectStreamException {
if (triggerScript != null && secureTriggerScript == null) {
this.secureTriggerScript = new SecureGroovyScript(triggerScript, false, null);
this.secureTriggerScript.configuring(ApprovalContext.create());
diff --git a/src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java b/src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
index 7685bcc28..4946d1141 100644
--- a/src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
+++ b/src/test/java/hudson/plugins/emailext/ExtendedEmailPublisherTest.java
@@ -36,6 +36,7 @@
import org.apache.commons.io.IOUtils;
import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval;
import org.junit.*;
+import org.junit.rules.TestName;
import org.jvnet.hudson.test.BuildWatcher;
import org.jvnet.hudson.test.FailureBuilder;
import org.jvnet.hudson.test.Issue;
@@ -84,6 +85,8 @@ public class ExtendedEmailPublisherTest {
public static JenkinsRule j = new JenkinsRule();
private AuthorizationStrategy oldAuthorizationStrategy;
private SecurityRealm oldSecurityRealm;
+ @Rule
+ public TestName testName = new TestName();
@Before
public void before() throws Throwable {
@@ -102,7 +105,7 @@ public void before() throws Throwable {
publisher.setPresendScript("");
publisher.setPostsendScript("");
- project = j.createFreeStyleProject();
+ project = j.createFreeStyleProject(testName.getMethodName());
project.getPublishersList().add(publisher);
recProviders = Collections.emptyList();