From 518e879773b490cdf892019678c8240402ec9eee Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Fri, 19 Jan 2024 13:06:06 -0500 Subject: [PATCH] Pin `mysql` image to avoid test regressions --- .../pipeline/maven/ConfigurationAsCodeNeedDockerTest.java | 2 +- .../plugins/pipeline/maven/GlobalPipelineMavenConfigTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)