Skip to content

Commit

Permalink
Merge branch 'master' into experimental-details-widget
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Jan 31, 2025
2 parents d09ffe9 + 5aca30a commit 5b93f1e
Show file tree
Hide file tree
Showing 151 changed files with 1,080 additions and 3,051 deletions.
18 changes: 1 addition & 17 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
extends: "stylelint-config-standard",
customSyntax: "postcss-scss",
extends: "stylelint-config-standard-scss",
ignoreFiles: ["src/main/scss/_bootstrap.scss"],
rules: {
"no-descending-specificity": null,
Expand All @@ -14,23 +13,8 @@ module.exports = {
},
],
"property-no-vendor-prefix": null,
"at-rule-no-unknown": [
true,
{
ignoreAtRules: [
"function",
"if",
"each",
"include",
"mixin",
"for",
"use",
],
},
],
"alpha-value-notation": "number",
"number-max-precision": 5,
"function-no-unknown": null,
"no-duplicate-selectors": null,
"hue-degree-notation": "number",
},
Expand Down
2 changes: 1 addition & 1 deletion ath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -o xtrace
cd "$(dirname "$0")"

# https://github.com/jenkinsci/acceptance-test-harness/releases
export ATH_VERSION=6107.v8c73fa_b_8f784
export ATH_VERSION=6133.v358d9a_47674f

if [[ $# -eq 0 ]]; then
export JDK=17
Expand Down
30 changes: 2 additions & 28 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>6.2.1</version>
<version>6.2.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -91,17 +91,6 @@ THE SOFTWARE.
<artifactId>guava</artifactId>
<version>33.4.0-jre</version>
</dependency>
<dependency>
<!-- Overriding Stapler’s 1.1.3 version to diagnose JENKINS-20618: -->
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
<version>1.1.3-kohsuke-1</version>
</dependency>
<dependency>
<groupId>com.sun.solaris</groupId>
<artifactId>embedded_su4j</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.txw2</groupId>
<artifactId>txw2</artifactId>
Expand All @@ -120,7 +109,7 @@ THE SOFTWARE.
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.17.2</version>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
Expand All @@ -137,11 +126,6 @@ THE SOFTWARE.
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>io.jenkins.stapler</groupId>
<artifactId>jenkins-stapler-support</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand Down Expand Up @@ -323,11 +307,6 @@ THE SOFTWARE.
<artifactId>windows-package-checker</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.kohsuke.jinterop</groupId>
<artifactId>j-interop</artifactId>
<version>2.0.8-kohsuke-1</version>
</dependency>
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
Expand Down Expand Up @@ -359,11 +338,6 @@ THE SOFTWARE.
<artifactId>asm</artifactId>
<version>9.7.1</version>
</dependency>
<dependency>
<groupId>org.samba.jcifs</groupId>
<artifactId>jcifs</artifactId>
<version>1.3.18-kohsuke-1</version>
</dependency>
<dependency>
<!-- provided by jcl-over-slf4j -->
<groupId>commons-logging</groupId>
Expand Down
3 changes: 3 additions & 0 deletions cli/src/main/java/hudson/cli/CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,17 +343,20 @@ public void onOpen(Session session, EndpointConfig config) {}

class Authenticator extends ClientEndpointConfig.Configurator {
HandshakeResponse hr;

@Override
public void beforeRequest(Map<String, List<String>> headers) {
if (factory.authorization != null) {
headers.put("Authorization", List.of(factory.authorization));
}
}

@Override
public void afterResponse(HandshakeResponse hr) {
this.hr = hr;
}
}

var authenticator = new Authenticator();

ClientManager client = ClientManager.createClient(JdkClientContainer.class.getName()); // ~ ContainerProvider.getWebSocketContainer()
Expand Down
17 changes: 0 additions & 17 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,6 @@ THE SOFTWARE.
<artifactId>bridge-method-annotation</artifactId>
<version>${bridge-method-injector.version}</version>
</dependency>
<dependency>
<!-- Overriding Stapler’s 1.1.3 version to diagnose JENKINS-20618: -->
<groupId>com.jcraft</groupId>
<artifactId>jzlib</artifactId>
</dependency>
<dependency>
<groupId>com.sun.solaris</groupId>
<artifactId>embedded_su4j</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.txw2</groupId>
<artifactId>txw2</artifactId>
Expand Down Expand Up @@ -171,10 +162,6 @@ THE SOFTWARE.
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<dependency>
<groupId>io.jenkins.stapler</groupId>
<artifactId>jenkins-stapler-support</artifactId>
</dependency>
<dependency>
<!-- needed by Jelly -->
<groupId>jakarta.servlet.jsp.jstl</groupId>
Expand Down Expand Up @@ -354,10 +341,6 @@ THE SOFTWARE.
<groupId>org.kohsuke</groupId>
<artifactId>windows-package-checker</artifactId>
</dependency>
<dependency>
<groupId>org.kohsuke.jinterop</groupId>
<artifactId>j-interop</artifactId>
</dependency>
<dependency>
<groupId>org.kohsuke.metainf-services</groupId>
<artifactId>metainf-services</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/ClassicPluginStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ protected ClassLoader createClassLoader(List<File> paths, ClassLoader parent) th
/**
* @deprecated since 2.459 use {@link #createClassLoader(String, List, ClassLoader, Attributes)}
*/
@Deprecated(since="2.459")
@Deprecated(since = "2.459")
protected ClassLoader createClassLoader(List<File> paths, ClassLoader parent, Attributes atts) throws IOException {
// generate a legacy id so at least we can track to something
return createClassLoader("unidentified-" + UUID.randomUUID(), paths, parent, atts);
Expand Down
16 changes: 15 additions & 1 deletion core/src/main/java/hudson/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,21 @@ public Proc launch(ProcStarter ps) throws IOException {
final String workDir = psPwd == null ? null : psPwd.getRemote();

try {
RemoteLaunchCallable remote = new RemoteLaunchCallable(ps.commands, ps.masks, ps.envs, in, ps.reverseStdin, out, ps.reverseStdout, err, ps.reverseStderr, ps.quiet, workDir, listener, ps.stdoutListener, envVarsFilterRuleWrapper);
RemoteLaunchCallable remote = new RemoteLaunchCallable(
ps.commands,
ps.masks,
ps.envs,
in,
ps.reverseStdin,
out,
ps.reverseStdout,
err,
ps.reverseStderr,
ps.quiet,
workDir,
listener,
ps.stdoutListener,
envVarsFilterRuleWrapper);
// reset the rules to prevent build step without rules configuration to re-use those
envVarsFilterRuleWrapper = null;
return new ProcImpl(getChannel().call(remote));
Expand Down
Loading

0 comments on commit 5b93f1e

Please sign in to comment.