|
1 | 1 | <?jelly escape-by-default='true'?>
|
2 | 2 | <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
|
3 |
| - <div> |
| 3 | + <p> |
4 | 4 | For any project, it's critical to know how the software is used, but tracking usage data is inherently difficult in open-source projects.
|
5 | 5 | Anonymous usage statistics address this need.
|
6 | 6 | When enabled, Jenkins periodically sends information to the Jenkins project.
|
7 | 7 | The Jenkins project uses this information to set development priorities.
|
8 |
| - </div> |
| 8 | + </p> |
9 | 9 | <j:invokeStatic className="jenkins.security.FIPS140" method="useCompliantAlgorithms" var="fips"/>
|
10 | 10 | <j:if test="${!fips}">
|
11 |
| - <h1>General usage statistics</h1> |
| 11 | + <h3>General usage statistics</h3> |
12 | 12 | <div>
|
13 | 13 | <p>Jenkins reports the following general usage statistics:</p>
|
14 | 14 | <ul>
|
|
24 | 24 | </p>
|
25 | 25 | </div>
|
26 | 26 | </j:if>
|
27 |
| - <h1>Telemetry collection</h1> |
| 27 | + <h3>Telemetry collection</h3> |
28 | 28 | <div>
|
29 | 29 | <p>
|
30 | 30 | <j:choose>
|
|
38 | 38 | Each trial has a specific purpose and a defined end date, after which collection stops, independent of the installed versions of Jenkins or plugins.
|
39 | 39 | Once a trial is complete, the trial results may be aggregated and shared with the developer community.
|
40 | 40 | </p>
|
41 |
| - <p> |
42 |
| - The following trials defined on this instance are active now or in the future: |
43 |
| - </p> |
| 41 | + |
44 | 42 | <j:invokeStatic className="jenkins.telemetry.Telemetry" method="all" var="collectors"/>
|
| 43 | + <j:invokeStatic className="jenkins.telemetry.Telemetry" method="isAnyTrialActive" var="anyTrialActive"/> |
45 | 44 | <j:invokeStatic className="java.time.LocalDate" method="now" var="now"/>
|
46 |
| - <dl> |
47 |
| - <j:forEach items="${collectors}" var="collector"> |
48 |
| - <j:if test="${not collector.end.isBefore(now)}"> |
49 |
| - <dt>${collector.displayName}</dt> |
50 |
| - <dd> |
51 |
| - <st:include it="${collector}" optional="true" page="description.jelly"/> |
52 |
| - <p> |
53 |
| - Start date: ${collector.start}<br/> |
54 |
| - End date: ${collector.end} |
55 |
| - </p> |
56 |
| - </dd> |
57 |
| - </j:if> |
58 |
| - </j:forEach> |
59 |
| - </dl> |
| 45 | + <j:choose> |
| 46 | + <j:when test="${!anyTrialActive}"> |
| 47 | + <p>${%There are currently no active trials.}</p> |
| 48 | + </j:when> |
| 49 | + <j:otherwise> |
| 50 | + <p> |
| 51 | + The following trials defined on this instance are active now or in the future: |
| 52 | + </p> |
| 53 | + <dl> |
| 54 | + <j:forEach items="${collectors}" var="collector"> |
| 55 | + <j:if test="${not collector.end.isBefore(now)}"> |
| 56 | + <dt>${collector.displayName}</dt> |
| 57 | + <dd> |
| 58 | + <st:include it="${collector}" optional="true" page="description.jelly"/> |
| 59 | + <p> |
| 60 | + Start date: ${collector.start} |
| 61 | + <br/> |
| 62 | + End date: ${collector.end} |
| 63 | + </p> |
| 64 | + </dd> |
| 65 | + </j:if> |
| 66 | + </j:forEach> |
| 67 | + </dl> |
| 68 | + </j:otherwise> |
| 69 | + </j:choose> |
60 | 70 | </div>
|
61 | 71 | </j:jelly>
|
0 commit comments