Skip to content

Commit 16ab789

Browse files
committed
Fix up Nightly Nightly links
1 parent 45f1ec2 commit 16ab789

File tree

5 files changed

+50
-24
lines changed

5 files changed

+50
-24
lines changed

README.md

+19-11
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ process of updating site contents for a stable release.
144144
maintain_jira: 16819
145145
```
146146
147-
### Dev Releases
147+
### Dev Releases and Main branch
148148
149149
When publishing the first milestone, beta or release candidate for a series:
150150
@@ -154,18 +154,22 @@ When publishing the first milestone, beta or release candidate for a series:
154154
155155
Create ``bin/templates/about_XXX.md`` highlighting new features.
156156
157-
2. Update ``_config.yml`` update ``dev_series`` and ``dev_branch``, the matching release announcement post will be used to generate `release/dev/index.html` page.
157+
2. Update ``_config.yml`` update ``dev_branch`` and ``dev_jira`` the matching release announcement post will be used to generate `release/dev/index.html` page.
158158
159159
```
160-
dev_series: 2.21.x
161-
dev_branch: 2.21.x
160+
dev_branch: 2.27.x
161+
dev_jira: 16884
162162
```
163+
164+
When `dev_branch` is not ``main`` the build process scan for the latest development release for public testing.
163165
164166
3. Update the `main_series`, and `main_jira` to reflect the new version number for `main` branch, this will be used to generate a placeholder for `release/main/index.html` page.
165167
```
166-
main_series: 2.22.x
168+
main_series 2.28.x
167169
main_jira: 16829
168170
```
171+
172+
As the main branch always has the same name ``main_series`` is used to provide the name to use for generating links.
169173
170174
### Final Release
171175
@@ -176,19 +180,23 @@ When creating the final release:
176180
* Update the `maintain_branch` using the values from `stable`.
177181
* Update the `stable_branch`.
178182
179-
2. Update the `main_series` and `main_series` information. For example, when starting the series `2.22.x`:
183+
2. Update the `main_series` and `main_jira` information. For example, when starting the series `2.22.x`:
180184
181185
```
182-
main_series: 2.22.x
183-
main_jira: 16829_
186+
main_series: 2.29.x
187+
main_jira: 16829
184188
```
189+
190+
As the main branch always has the same name ``main_series`` is used to provide the name to use for generating links.
185191
186-
3. The ``dev_series`` and ``dev_branch`` property in ``_config.yml`` to the new series, these will no longer match any posts as the development period is over:
192+
3. Restore ``dev_branch`` property in ``_config.yml`` to ``main``.
187193
188194
```
189-
dev_series: main
190-
dev_branch: 2.22.x
195+
dev_branch: main
196+
dev_jira: 16829
191197
```
198+
199+
When `dev_branch` is ``main`` the build process will no longer match any posts as the development period is over.
192200
193201
## Technical Details
194202

_config.yml

+22-6
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,42 @@ nightly_url: https://build.geoserver.org/geoserver
1111
docs_url: https://docs.geoserver.org
1212
url: https://geoserver.org
1313

14+
##
15+
## MAIN BRANCH
16+
##
17+
1418
# latest nightly build
1519
main_series: 2.27.x
1620

1721
# the next jira release for the main branch
1822
main_jira: 16936
1923

20-
#dev determine dev_version
21-
dev: 2.26.0
22-
dev_branch: 2.27.x
23-
dev_series: 2.27.x
24-
# release candidate, or milestone, if available
25-
dev_jira: 16936
24+
##
25+
## DEVELOPMENT BRANCH
26+
##
27+
## This is used during release candidate phase only
28+
29+
# dev determine nightly build, dev_version
30+
# (When this value is main it is ignored as main is already listed)
31+
dev_branch: main
2632

33+
# the next jira release for the dev branch nightly build
34+
dev_jira: 16884
35+
36+
##
37+
## STABLE BRANCH
38+
##
2739

2840
# stable determine nightly build, stable_version
2941
stable_branch: 2.26.x
3042

3143
# the next jira release for the stable branch nightly build
3244
stable_jira: 16940
3345

46+
##
47+
## MAINTENANCE BRANCH
48+
#
49+
3450
# maintenance (determine nightly build, maintain_version)
3551
maintain_branch: 2.25.x
3652

_plugins/release.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def generate(site)
2727
# Can we determine latest stable and maintenance page?
2828
p 'Review posts to identify latest releases'
2929
for item in releases
30-
if item[0] == site.config['dev_series'].chomp('.x')
30+
if item[0] == site.config['dev_branch'].chomp('.x')
3131
dev_latest = item[1].last
3232
p ' Identify dev_version=' + dev_latest
3333
site.config['dev_version'] = dev_latest
@@ -92,7 +92,7 @@ def generate(site)
9292
dev = NightlyPage.new(
9393
site,
9494
site.config['dev_branch'],
95-
site.config['dev_series'][0..-3],
95+
site.config['dev_branch'][0..-3],
9696
'latest',
9797
site.config['dev_jira']
9898
)

download/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ <h3>GeoServer Development</h3>
185185
{%- if site.dev_branch != "main" -%}
186186
<div class="alert alert-info">
187187
<p>
188-
Nightly builds for the <a href="/release/{{site.dev_branch}}">{{site.dev_series}}</a> series are here: <a class="alert-link"
188+
Nightly builds for the <a href="/release/{{site.dev_branch}}">{{site.dev_branch}}</a> series are here: <a class="alert-link"
189189
href="{{site.nightly_url}}/{{site.dev_branch}}">{{site.dev_branch}}</a>.
190190
</p>
191191
</div>

index.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,26 @@ <h2><a href="/download">Download</a> <span class="glyphicon glyphicon-download">
118118
<h4>Stable</h4>
119119
<ul>
120120
<li><a href="/release/stable">{{site.stable_version}}</a></li>
121-
<li><a href="/release/{{site.stable_branch}}">Nightly</a></li>
121+
<li><a href="/release/{{site.stable_branch}}">{{site.stable_branch | slice: 0, 4}} Nightly</a></li>
122122
</ul>
123123
</div>
124124
<div class="col-md-4 download-maintain">
125125
<h4>Maintenance</h4>
126126
<ul>
127127
<li><a href="/release/maintain">{{site.maintain_version}}</a></li>
128-
<li><a href="/release/{{site.maintain_branch}}">Nightly</a></li>
128+
<li><a href="/release/{{site.maintain_branch}}">{{site.maintain_branch | slice: 0, 4}} Nightly</a></li>
129129
</ul>
130130
</div>
131131
<div class="col-md-4 download-dev">
132132
<h4>Development</h4>
133133
<ul>
134+
{%- if site.dev_version -%}
134135
<li id="download_dev_version"><a href="/release/dev">{{site.dev_version}}</a></li>
136+
{% endif %}
135137
{%- if site.dev_branch != 'main' -%}
136-
<li><a href="/release/{{site.dev_branch}}">Nightly</a></li>
138+
<li><a href="/release/{{site.dev_branch}}">{{site.dev_branch | slice: 0, 4}} Nightly</a></li>
137139
{% endif %}
138-
<li><a href="/release/main">Nightly</a></li>
140+
<li><a href="/release/main">{{site.main_series | slice: 0, 4}} Nightly</a></li>
139141
</ul>
140142
</div>
141143
</div>

0 commit comments

Comments
 (0)