diff --git a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy index bf4079ea7de24088a89fb556105358573432190e..85f0db0b1e68d80652882a0979f722c87c0e54b8 100644 --- a/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy +++ b/test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy @@ -471,4 +471,20 @@ public class MatrixProjectTest { assertNull(defaultExecutionStrategy.getSorter()); } + @Bug(17337) + @Test public void reload() throws Exception { + MatrixProject p = j.createMatrixProject(); + AxisList axes = new AxisList(); + axes.add(new TextAxis("p", "only")); + p.setAxes(axes); + String n = p.getFullName(); + j.buildAndAssertSuccess(p); + j.jenkins.reload(); + p = j.jenkins.getItemByFullName(n, MatrixProject.class); + assertNotNull(p); + MatrixConfiguration c = p.getItem("p=only"); + assertNotNull(c); + assertNotNull(c.getBuildByNumber(1)); + } + }