Skip to content

Commit 3c115e7

Browse files
committed
Merge branches 'renovate/org.jenkins-ci.plugins-credentials-1460.x', 'renovate/major-stapler.version', 'renovate/io.jenkins.plugins-jaxb-2.x', 'renovate/io.jenkins.plugins-jakarta-xml-bind-api-4.x', 'renovate/io.jenkins.plugins-checks-api-402.x', 'renovate/io.jenkins.lib-support-log-formatter-121.x', 'renovate/com.puppycrawl.tools-checkstyle-12.x', 'jdk-telemetry', 'bump-remoting' and 'Pnkcaht/master' into aardvark-octopus
10 parents 7edbf6d + ab260a0 + 45263d0 + 59cd6a8 + a750c52 + bba5171 + 57f5c2b + 85caf66 + ddeba97 + 96eb2d8 commit 3c115e7

File tree

14 files changed

+44
-35
lines changed

14 files changed

+44
-35
lines changed

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["github>jenkinsci/renovate-config"],
3+
"extends": ["github>jenkinsci/renovate-config", "schedule:daily"],
44
"prHourlyLimit": 0,
55
"prConcurrentLimit": 0,
66
"packageRules": [

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ This page provides information about contributing code to the Jenkins core codeb
99
1. Fork the repository on GitHub
1010
2. Clone the forked repository to your machine
1111
3. Install the necessary development tools. In order to develop Jenkins, you need the following:
12-
- Java Development Kit (JDK) 17 or 21.
13-
In the Jenkins project we usually use [Eclipse Temurin](https://adoptium.net/) or [OpenJDK](https://openjdk.java.net/), but you can use other JDKs as well.
12+
- Java Development Kit (JDK) 21 or 25.
13+
In the Jenkins project we usually use [Eclipse Temurin](https://adoptium.net/) or [OpenJDK](https://openjdk.org/), but you can use other JDKs as well.
1414
- Apache Maven 3.9.6 or above. You can [download Maven here](https://maven.apache.org/download.cgi).
1515
In the Jenkins project we usually use the most recent Maven release.
1616
- Any IDE which supports importing Maven projects.

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ THE SOFTWARE.
4141
<commons-fileupload2.version>2.0.0-M4</commons-fileupload2.version>
4242
<groovy.version>2.4.21</groovy.version>
4343
<jelly.version>1.1-jenkins-20250731</jelly.version>
44-
<stapler.version>2061.v3949245133a_f</stapler.version>
44+
<stapler.version>2065.v7db_c1fcf0a_d0</stapler.version>
4545
</properties>
4646

4747
<dependencyManagement>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ THE SOFTWARE.
4040

4141
<properties>
4242
<!-- Minimum Remoting version, which is tested for API compatibility, duplicated so that renovate only updates the latest remoting version property -->
43-
<remoting.minimum.supported.version>3107.v665000b_51092</remoting.minimum.supported.version>
43+
<remoting.minimum.supported.version>3176.v207ec082a_8c0</remoting.minimum.supported.version>
4444
<!-- Filled in by jacoco-maven-plugin -->
4545
<jacocoSurefireArgs />
4646
</properties>

core/src/main/java/hudson/model/Job.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,9 @@ public RunT getLastCompletedBuild() {
10531053
*/
10541054
public List<RunT> getLastBuildsOverThreshold(int numberOfBuilds, Result threshold) {
10551055
RunT r = getLastBuild();
1056+
if (r == null) {
1057+
return Collections.emptyList();
1058+
}
10561059
return r.getBuildsOverThreshold(numberOfBuilds, threshold);
10571060
}
10581061

core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -356,22 +356,30 @@ private String getErrorMessages(SignupInfo si) {
356356
return messages.toString();
357357
}
358358

359+
/**
360+
* Lock used to make initial admin account creation atomic.
361+
*/
362+
private static final Object CREATE_FIRST_ACCOUNT_LOCK = new Object();
363+
359364
/**
360365
* Creates a first admin user account.
361366
*
362367
* <p>
363368
* This can be run by anyone, but only to create the very first user account.
364369
*/
365370
@RequirePOST
366-
public void doCreateFirstAccount(StaplerRequest2 req, StaplerResponse2 rsp) throws IOException, ServletException {
367-
if (hasSomeUser()) {
368-
rsp.sendError(SC_UNAUTHORIZED, "First user was already created");
369-
return;
370-
}
371-
User u = createAccount(req, rsp, false, "firstUser.jelly");
372-
if (u != null) {
373-
tryToMakeAdmin(u);
374-
loginAndTakeBack(req, rsp, u);
371+
public void doCreateFirstAccount(StaplerRequest2 req, StaplerResponse2 rsp)
372+
throws IOException, ServletException {
373+
synchronized (CREATE_FIRST_ACCOUNT_LOCK) {
374+
if (hasSomeUser()) {
375+
rsp.sendError(SC_UNAUTHORIZED, "First user was already created");
376+
return;
377+
}
378+
User u = createAccount(req, rsp, false, "firstUser.jelly");
379+
if (u != null) {
380+
tryToMakeAdmin(u);
381+
loginAndTakeBack(req, rsp, u);
382+
}
375383
}
376384
}
377385

core/src/main/java/jenkins/monitor/JavaVersionRecommendationAdminMonitor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public class JavaVersionRecommendationAdminMonitor extends AdministrativeMonitor
7878

7979
static {
8080
NavigableMap<Integer, LocalDate> supportedVersions = new TreeMap<>();
81-
supportedVersions.put(17, LocalDate.of(2026, 3, 31)); // Temurin: 2027-10-31
8281
supportedVersions.put(21, LocalDate.of(2027, 9, 30)); // Temurin: 2029-09-30
8382
supportedVersions.put(25, LocalDate.of(2029, 9, 30)); // Temurin: 2031-09-30
8483
SUPPORTED_JAVA_VERSIONS = Collections.unmodifiableNavigableMap(supportedVersions);

core/src/main/java/jenkins/security/stapler/StaplerDispatchValidator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ private void loadWhitelist(@NonNull List<String> whitelistLines) {
311311
}
312312
}
313313

314-
@SuppressFBWarnings(value = "SIC_INNER_SHOULD_BE_STATIC", justification = "TODO needs triage")
315314
private class Validator {
316315
// lazy load parents to avoid trying to load potentially unavailable classes
317316
private final Supplier<Collection<Validator>> parentsSupplier;

core/src/main/java/jenkins/telemetry/impl/JavaSystemProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public String getDisplayName() {
7070
@NonNull
7171
@Override
7272
public LocalDate getStart() {
73-
return LocalDate.of(2023, 12, 17);
73+
return LocalDate.of(2026, 1, 4);
7474
}
7575

7676
@NonNull
7777
@Override
7878
public LocalDate getEnd() {
79-
return LocalDate.of(2024, 4, 1);
79+
return LocalDate.of(2026, 4, 1);
8080
}
8181

8282
@Override

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ THE SOFTWARE.
2828
<parent>
2929
<groupId>org.jenkins-ci</groupId>
3030
<artifactId>jenkins</artifactId>
31-
<version>1.142</version>
31+
<version>2.1326.v00b_e26755312</version>
3232
<relativePath />
3333
</parent>
3434

@@ -281,7 +281,7 @@ THE SOFTWARE.
281281
<dependency>
282282
<groupId>com.puppycrawl.tools</groupId>
283283
<artifactId>checkstyle</artifactId>
284-
<version>12.3.0</version>
284+
<version>12.3.1</version>
285285
</dependency>
286286
</dependencies>
287287
<executions>

0 commit comments

Comments
 (0)