Skip to content

Commit 6c34a8f

Browse files
committed
Add back norelease check when building a release
This was lost around 2.1. This change adds it back. closes #19246
1 parent 329eaae commit 6c34a8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/ForbiddenPatternsTask.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public class ForbiddenPatternsTask extends DefaultTask {
6161
// add mandatory rules
6262
patterns.put('nocommit', /nocommit/)
6363
patterns.put('tab', /\t/)
64+
if (System.getProperty('build.snapshot', 'true').equals('false')) {
65+
patterns.put('norelease', /norelease/)
66+
}
6467

6568
inputs.property("excludes", filesFilter.excludes)
6669
inputs.property("rules", patterns)

0 commit comments

Comments
 (0)