1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Updated publish behaviour for verify/install

This commit is contained in:
Petko Dimitrov
2025-07-30 16:05:26 +03:00
parent 15492ee833
commit a11d032248

View File

@@ -129,10 +129,12 @@ func runMavenBuild(config *mavenBuildOptions, _ *telemetry.CustomData, utils mav
goals = append(goals, "org.jacoco:jacoco-maven-plugin:prepare-agent")
if config.Verify {
goals = append(goals, "verify")
} else {
goals = append(goals, "install")
if !config.Publish {
if config.Verify {
goals = append(goals, "verify")
} else {
goals = append(goals, "install")
}
}
mavenOptions := maven.ExecuteOptions{