diff --git a/CHANGELOG.md b/CHANGELOG.md index abc6d9ad8..4dae967ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ We use [semantic versioning](http://semver.org/): # Next version - _maven-plugin_: Added maven properties for `runImpacted` and `runAllTests` configuration parameters +- _maven-plugin_: The warning "Both baselineRevision and baselineCommit are set but only one of them is needed" was displayed incorrectly # 36.2.0 - _agent_: improved logging when multiple agents are attached diff --git a/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java b/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java index 3b60b17df..280c4f995 100644 --- a/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java +++ b/teamscale-maven-plugin/src/main/java/com/teamscale/maven/tia/TiaMojoBase.java @@ -160,7 +160,7 @@ public abstract class TiaMojoBase extends TeamscaleMojoBase { public void execute() throws MojoFailureException, MojoExecutionException { super.execute(); - if (!StringUtils.isEmpty(baselineCommit) && StringUtils.isEmpty(baselineRevision)) { + if (!StringUtils.isEmpty(baselineCommit) && !StringUtils.isEmpty(baselineRevision)) { getLog().warn("Both baselineRevision and baselineCommit are set but only one of them is needed. " + "The revision will be preferred in this case. If that's not intended, please do not set the baselineRevision manually."); }