Skip to content

Commit 9ab6ea6

Browse files
authored
Merge branch 'master' into add-a-isconnected-method
2 parents dd7a177 + 72f78ab commit 9ab6ea6

File tree

70 files changed

+662
-627
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+662
-627
lines changed

.gitpod/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM gitpod/workspace-full:latest
22
ARG JAVA_VERSION=21.0.6-tem
3-
ARG MAVEN_VERSION=3.9.10
3+
ARG MAVEN_VERSION=3.9.11
44
# Install Java 21, Maven and GitHub CLI
55
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
66
sdk install java ${JAVA_VERSION} && \

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.8</version>
5+
<version>1.10</version>
66
</extension>
77
</extensions>

ath.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -o xtrace
66
cd "$(dirname "$0")"
77

88
# https://github.com/jenkinsci/acceptance-test-harness/releases
9-
export ATH_VERSION=6277.vb_5b_2154b_6691
9+
export ATH_VERSION=6300.v12732144c83f
1010

1111
if [[ $# -eq 0 ]]; then
1212
export JDK=17

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ THE SOFTWARE.
6363
<dependency>
6464
<groupId>org.springframework</groupId>
6565
<artifactId>spring-framework-bom</artifactId>
66-
<version>6.2.8</version>
66+
<version>6.2.9</version>
6767
<type>pom</type>
6868
<scope>import</scope>
6969
</dependency>

cli/pom.xml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@
4343
<artifactId>commons-lang</artifactId>
4444
<optional>true</optional>
4545
</dependency>
46-
<dependency>
47-
<!-- ed25519 algorithm, see JENKINS-45318 -->
48-
<groupId>net.i2p.crypto</groupId>
49-
<artifactId>eddsa</artifactId>
50-
<version>0.3.0</version>
51-
<optional>true</optional>
52-
</dependency>
5346
<dependency>
5447
<groupId>org.apache.sshd</groupId>
5548
<artifactId>sshd-common</artifactId>
@@ -62,6 +55,12 @@
6255
<version>${mina-sshd.version}</version>
6356
<optional>true</optional>
6457
</dependency>
58+
<dependency>
59+
<groupId>org.bouncycastle</groupId>
60+
<artifactId>bcprov-jdk18on</artifactId>
61+
<version>1.81</version>
62+
<optional>true</optional>
63+
</dependency>
6564
<dependency>
6665
<groupId>org.glassfish.tyrus.bundles</groupId>
6766
<artifactId>tyrus-standalone-client-jdk</artifactId>
@@ -155,6 +154,17 @@
155154
</transformer>
156155
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
157156
</transformers>
157+
<filters>
158+
<filter>
159+
<!-- signature might cause some trouble -->
160+
<artifact>*:*</artifact>
161+
<excludes>
162+
<exclude>META-INF/*.SF</exclude>
163+
<exclude>META-INF/*.DSA</exclude>
164+
<exclude>META-INF/*.RSA</exclude>
165+
</excludes>
166+
</filter>
167+
</filters>
158168
</configuration>
159169
</execution>
160170
</executions>

core/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,11 @@ THE SOFTWARE.
623623
<artifactId>maven-dependency-plugin</artifactId>
624624
<!-- Version specified in grandparent POM -->
625625
<executions>
626+
<execution>
627+
<goals>
628+
<goal>properties</goal>
629+
</goals>
630+
</execution>
626631
<execution>
627632
<id>winsw</id>
628633
<goals>
@@ -651,7 +656,7 @@ THE SOFTWARE.
651656
<!-- Version specified in grandparent POM -->
652657
<configuration>
653658
<!-- Make sure to keep the directives in test/pom.xml and war/pom.xml in sync with these. -->
654-
<argLine>@{jacocoSurefireArgs} --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED</argLine>
659+
<argLine>@{jacocoSurefireArgs} --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED -javaagent:${org.mockito:mockito-core:jar}</argLine>
655660
<reuseForks>false</reuseForks>
656661
</configuration>
657662
</plugin>

core/src/main/java/hudson/Functions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ public boolean hyperlinkMatchesCurrentPage(String href) {
20992099
}
21002100

21012101
/**
2102-
* If the given {@code Action} is a {@link RootAction#isPrimaryAction() primary} {code RootAction}, or a parent of the current page, return {@code true}.
2102+
* If the given {@code Action} is a {@link RootAction#isPrimaryAction() primary} {@code RootAction}, or a parent of the current page, return {@code true}.
21032103
* Used in {@code actions.jelly} to decide if the action should shown in the main header or the hamburger.
21042104
*/
21052105
@Restricted(NoExternalUse.class)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ protected Level getErrorLoggingLevel() {
278278

279279
/**
280280
* @return true if a new run should be queued if it is already running while called.
281-
* @since TODO
281+
* @since 2.517
282282
*/
283283
protected boolean queueIfAlreadyRunning() {
284284
return false;

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ public interface RootAction extends Action, ExtensionPoint {
5454
/**
5555
* Identifies if the action is a primary action.
5656
* Primary actions may be handled differently in the UI (for example, by always showing on the header rather than in an actions dropdown).
57-
* In almost all cases this should return {@code false} which is the default
58-
* @return {@code true} iff this action should be considered primary.
57+
* In almost all cases this should return {@code false} which is the default.
58+
* Examples of a Primary action would be where actions would be used regularly or they would need to be prominent to convey some status.
59+
* As a concrete example, an action that provides a Help action with a submenu containing various different links, would be a prime candidate for this to return {@code true}.
60+
* If your action has the possibility of a {@link #getBadge() badge} then this is another indicator that the action should return {@code true} (or otherwise restructured).
61+
* @return {@code true} if and only if this action should be considered primary.
5962
* @since 2.516
6063
*/
6164
default boolean isPrimaryAction() {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@
3939
import jenkins.util.SystemProperties;
4040
import org.kohsuke.accmod.Restricted;
4141
import org.kohsuke.accmod.restrictions.NoExternalUse;
42+
import org.springframework.http.HttpMethod;
4243
import org.springframework.security.core.Authentication;
4344
import org.springframework.security.core.AuthenticationException;
4445
import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
45-
import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
46+
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
4647

4748
/**
4849
* Login filter with a change for Jenkins so that
@@ -56,7 +57,7 @@ public final class AuthenticationProcessingFilter2 extends UsernamePasswordAuthe
5657

5758
@SuppressFBWarnings(value = "HARD_CODE_PASSWORD", justification = "This is a password parameter, not a password")
5859
public AuthenticationProcessingFilter2(String authenticationGatewayUrl) {
59-
setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher("/" + authenticationGatewayUrl, "POST"));
60+
setRequiresAuthenticationRequestMatcher(PathPatternRequestMatcher.withDefaults().matcher(HttpMethod.POST, "/" + authenticationGatewayUrl));
6061
// Jenkins/login.jelly & SetupWizard/authenticate-security-token.jelly
6162
setUsernameParameter("j_username");
6263
setPasswordParameter("j_password");

0 commit comments

Comments
 (0)