提交 37bf35b5 编写于 作者: J Jesse Glick

[JENKINS-15156] AbstractProject.builds accessed by Maven & matrix module...

[JENKINS-15156] AbstractProject.builds accessed by Maven & matrix module builds before onLoad or onCreatedFromScratch called.
Seem to need to keep the deprecated no-arg RunMap initializer though it is unclear to me how it could work.
上级 cb077485
......@@ -162,7 +162,8 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
* {@link Run#getPreviousBuild()}
*/
@Restricted(NoExternalUse.class)
protected transient RunMap<R> builds;
@SuppressWarnings("deprecation") // [JENKINS-15156] builds accessed before onLoad or onCreatedFromScratch called
protected transient RunMap<R> builds = new RunMap<R>();
/**
* The quiet period. Null to delegate to the system default.
......@@ -269,7 +270,6 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
@Override
public void onCreatedFromScratch() {
super.onCreatedFromScratch();
assert builds == null;
builds = createBuildRunMap();
// solicit initial contributions, especially from TransientProjectActionFactory
updateTransientActions();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册