warhansen
warhansen

Reputation: 736

How can I fail a Jenkins Maven release if it contains SNAPSHOT in the pom.xml

When we do a release we want to fail the release if any of the dependent apps are still in SNAPSHOT version in the pom. For normal builds this should be allowed.

I guess there might be 2 options:

Thanks.

Upvotes: 1

Views: 1094

Answers (1)

Dima Patserkovskyi
Dima Patserkovskyi

Reputation: 733

You can use Maven Release Plugin to perform a release, it will fail the release in case of SNAPSHOT dependencies.

You also can specify checking for timestamped SNAPSHOT dependencies, by default it is false.

Upvotes: 3

Related Questions