diff --git a/Jenkinsfile b/Jenkinsfile
index 48fdc0707..4520f59e1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,4 +1,10 @@
-buildPlugin(platforms: [
- 'linux',
- 'maven-windows' // TODO Docker-based tests fail when using Docker on Windows. The maven-windows agents do not have Docker installed so tests that require Docker are skipped.
+/*
+ See the documentation for more options:
+ https://github.com/jenkins-infra/pipeline-library/
+*/
+buildPlugin(
+ useContainerAgent: false, // Set to `false` if you need to use Docker for containerized tests
+ configurations: [
+ [platform: 'linux', jdk: 17],
+ [platform: 'windows', jdk: 11],
])
diff --git a/pom.xml b/pom.xml
index 5a3f42293..e7310f46d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.jenkins-ci.plugins
plugin
- 4.51
+ 4.67
docker-workflow
@@ -30,7 +30,7 @@
999999-SNAPSHOT
- 2.332.1
+ 2.387.3
jenkinsci/${project.artifactId}-plugin
@@ -49,8 +49,8 @@
io.jenkins.tools.bom
- bom-2.332.x
- 1643.v1cffef51df73
+ bom-2.387.x
+ 2143.ve4c3c9ec790a
import
pom
diff --git a/src/test/java/org/jenkinsci/plugins/docker/workflow/declarative/DockerDirectiveGeneratorTest.java b/src/test/java/org/jenkinsci/plugins/docker/workflow/declarative/DockerDirectiveGeneratorTest.java
index cae928399..e28cff150 100644
--- a/src/test/java/org/jenkinsci/plugins/docker/workflow/declarative/DockerDirectiveGeneratorTest.java
+++ b/src/test/java/org/jenkinsci/plugins/docker/workflow/declarative/DockerDirectiveGeneratorTest.java
@@ -24,10 +24,10 @@
package org.jenkinsci.plugins.docker.workflow.declarative;
-import com.gargoylesoftware.htmlunit.HttpMethod;
-import com.gargoylesoftware.htmlunit.WebRequest;
-import com.gargoylesoftware.htmlunit.WebResponse;
-import com.gargoylesoftware.htmlunit.util.NameValuePair;
+import org.htmlunit.HttpMethod;
+import org.htmlunit.WebRequest;
+import org.htmlunit.WebResponse;
+import org.htmlunit.util.NameValuePair;
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.model.Describable;
import java.net.URL;