Chore: Upgrade Jenkins-job-builder to 6.3.0
[releng/global-jjb.git] / releasenotes / notes / lf-view-templates-add-64911f643dc053d8.yaml
1 ---
2 features:
3   - |
4     New view-templates ``project-view``, ``common-view``, and ``csit-view`` are
5     available for projects to manage Jenkins views through code.
6
7     To use the ``project-view`` template in a project:
8
9     .. code-block:: yaml
10
11        - project:
12            name: aaa-view
13            views:
14              - project-view
15
16            project-name: aaa
17
18     To use the ``common-view`` template in a project:
19
20     .. code-block:: yaml
21
22        - project:
23            name: daily-builds
24            views:
25              - common-view
26
27            view-name: Periodic
28            view-regex: '.*-periodic-.*'
29
30     To use the ``csit-view`` template in a project:
31
32     .. code-block:: yaml
33
34        - project:
35            name: csit
36            views:
37              - csit-view
38
39            view-name: CSIT
40            view-regex: '.*csit.*'
41
42        - project:
43            name: csit-1node
44            views:
45              - csit-view
46
47            view-name: CSIT-1node
48            view-regex: '.*-csit-1node-.*'
49
50 upgrade:
51   - |
52     Some LF projects are already using a ``common-view`` template in their
53     local ci-management repo. This ``common-view`` is called ``project-view``
54     in global-jjb so rename all instances of ``common-view`` to
55     ``project-view`` when upgrading and remove the local ``common-view``
56     view-template definition from ci-management.