Skip to content

Commit

Permalink
Temporarily support 2.332.x for BOM test suite (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Dec 1, 2022
1 parent 90c7124 commit f06d807
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -39,7 +39,14 @@ public void execute() throws MojoExecutionException {
}

if (new VersionNumber(findJenkinsVersion()).compareTo(new VersionNumber("2.361")) < 0) {
throw new MojoExecutionException("This version of maven-hpi-plugin requires Jenkins 2.361 or later");
if (System.getProperty("overrideWar") != null && System.getProperty("overrideWarAdditions") != null) {
/*
* Skip this check when running the BOM test suite. When the BOM drops support for 2.332.x and 2.346.x,
* we can throw the exception unconditionally.
*/
} else {
throw new MojoExecutionException("This version of maven-hpi-plugin requires Jenkins 2.361 or later");
}
}

MavenProject parent = project.getParent();
Expand Down

0 comments on commit f06d807

Please sign in to comment.