diff --git a/changelog.html b/changelog.html
index 88cb8d8d1d..7150160a77 100644
--- a/changelog.html
+++ b/changelog.html
@@ -58,6 +58,9 @@ Upcoming changes
Regression with environment variables in 1.600.
(issue 27188)
+
+ Errors with concurrent matrix builds since 1.597.
+ (issue 26739)
diff --git a/core/src/main/java/hudson/model/RunMap.java b/core/src/main/java/hudson/model/RunMap.java
index f5897bb5e8..ad2ae988c6 100644
--- a/core/src/main/java/hudson/model/RunMap.java
+++ b/core/src/main/java/hudson/model/RunMap.java
@@ -186,7 +186,9 @@ public final class RunMap> extends AbstractLazyLoadRunMap
if (rootDir.isDirectory()) {
throw new IllegalStateException(rootDir + " already existed; will not overwite with " + r);
}
- proposeNewNumber(r.getNumber());
+ if (!r.getClass().getName().equals("hudson.matrix.MatrixRun")) { // JENKINS-26739: grandfathered in
+ proposeNewNumber(r.getNumber());
+ }
rootDir.mkdirs();
return super._put(r);
}