Skip to content

Commit 487128e

Browse files
authored
Merge branch 'master' into new-reorderable-list-component
2 parents b0e298b + 4653b19 commit 487128e

32 files changed

Lines changed: 207 additions & 268 deletions

File tree

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=6294.v8837063f315d
1010

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

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/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");

core/src/main/java/jenkins/model/Jenkins.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,12 +2830,13 @@ public <T> ExtensionList<T> getExtensionList(Class<T> extensionType) {
28302830

28312831
/**
28322832
* Formerly used to bind {@link ExtensionList}s to URLs.
2833-
* <p>
2834-
* Currently handled by {@link jenkins.telemetry.impl.HttpExtensionList.ExtensionListRootAction}.
2835-
* </p>
28362833
*
28372834
* @since 1.349
2835+
* @deprecated This is no longer supported.
2836+
* For URL access to descriptors, see {@link hudson.model.DescriptorByNameOwner}.
2837+
* For URL access to specific other {@link hudson.Extension} annotated elements, create your own {@link hudson.model.Action}, like {@link hudson.console.ConsoleAnnotatorFactory.RootAction}.
28382838
*/
2839+
@Deprecated(since = "TODO")
28392840
public ExtensionList getExtensionList(String extensionType) throws ClassNotFoundException {
28402841
return getExtensionList(pluginManager.uberClassLoader.loadClass(extensionType));
28412842
}

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

Lines changed: 0 additions & 124 deletions
This file was deleted.

core/src/main/resources/hudson/diagnosis/MemoryUsageMonitor/index.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ THE SOFTWARE.
6161
</j:otherwise>
6262
</j:choose>
6363
</div>
64-
<img src="graph?type=${type}&amp;width=500&amp;height=300" />
64+
<img src="graph?type=${type}&amp;width=500&amp;height=300" class="jenkins-graph-card" />
6565
</l:main-panel>
6666
</l:layout>
6767
</j:jelly>

core/src/main/resources/hudson/model/Job/buildTimeTrend.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ THE SOFTWARE.
7373
</table>
7474
<t:iconSize/>
7575
</div>
76-
<img class="build-time-graph" src="buildTimeGraph/png" width="500" height="400" lazymap="buildTimeGraph/map" alt="[${%Build time graph}]" />
76+
<img class="build-time-graph jenkins-graph-card" src="buildTimeGraph/png" width="500" height="400" lazymap="buildTimeGraph/map" alt="[${%Build time graph}]" />
7777
</div>
7878
</l:main-panel>
7979
</l:layout>

core/src/main/resources/hudson/model/LoadStatistics/main.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ THE SOFTWARE.
4747
</div>
4848
<noscript>
4949
<!-- The noscript alternative does not have the possibility to adjust the image to the available space -->
50-
<img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300" srcset="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300&amp;scale=2 2x" alt="[${%Load statistics graph}]" />
50+
<img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300" srcset="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300&amp;scale=2 2x" alt="[${%Load statistics graph}]" class="jenkins-graph-card" />
5151
</noscript>
5252
<p>
5353
${%blurb}

core/src/main/resources/hudson/model/LoadStatistics/resources.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"&height=500";
5353
const graphImgTag = document.createElement("img");
5454
graphImgTag.src = graphUrl;
55+
graphImgTag.classList.add("jenkins-graph-card");
5556
graphImgTag.srcset = graphUrl + "&scale=2 2x";
5657
graphImgTag.alt = graphAlt;
5758
graphLocation.innerHTML = graphImgTag.outerHTML;

core/src/main/resources/jenkins/model/GlobalBuildDiscarderConfiguration/config.groovy

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)