Skip to content
Permalink
Browse files
Noting that this usage required JENKINS-33377 before it can be fixed
  • Loading branch information
stephenc committed Mar 8, 2016
1 parent 16eb348 commit 0ef1c6f56a61b8a62a115a3598af71479232052e
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/UsageStatistics.java
@@ -96,7 +96,7 @@ public UsageStatistics(String keyImage) {
* Returns true if it's time for us to check for new version.
*/
public boolean isDue() {
final Jenkins j = Jenkins.getInstanceOrNull();
final Jenkins j = Jenkins.getInstanceOrNull(); // TODO getInsance once JENKINS-33377 is merged
// user opted out or Jenkins not fully initialized. no data collection.
if (j == null || j.isUsageStatisticsCollected() || DISABLED || COMPLETED.compareTo(j.getInitLevel()) > 0) {
return false;

0 comments on commit 0ef1c6f

Please sign in to comment.