diff --git a/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/ConfigurationAsCodeNeedDockerTest.java b/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/ConfigurationAsCodeNeedDockerTest.java index 59fb8e80..e73dead9 100644 --- a/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/ConfigurationAsCodeNeedDockerTest.java +++ b/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/ConfigurationAsCodeNeedDockerTest.java @@ -33,7 +33,7 @@ public class ConfigurationAsCodeNeedDockerTest { @Container public static MySQLContainer MYSQL_DB = - new MySQLContainer<>(MySQLContainer.NAME).withUsername("aUser").withPassword("aPass"); + new MySQLContainer<>("mysql:8.2.0").withUsername("aUser").withPassword("aPass"); @Container public static PostgreSQLContainer POSTGRE_DB = new PostgreSQLContainer<>(PostgreSQLContainer.IMAGE) diff --git a/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/GlobalPipelineMavenConfigTest.java b/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/GlobalPipelineMavenConfigTest.java index 0da5e7fd..b61c3fcf 100644 --- a/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/GlobalPipelineMavenConfigTest.java +++ b/pipeline-maven/src/test/java/org/jenkinsci/plugins/pipeline/maven/GlobalPipelineMavenConfigTest.java @@ -34,7 +34,7 @@ public class GlobalPipelineMavenConfigTest { @Container public static MySQLContainer MYSQL_DB = - new MySQLContainer<>(MySQLContainer.NAME).withUsername("aUser").withPassword("aPass"); + new MySQLContainer<>("mysql:8.2.0").withUsername("aUser").withPassword("aPass"); @Container public static PostgreSQLContainer POSTGRE_DB = new PostgreSQLContainer<>(PostgreSQLContainer.IMAGE)