Debug release filtering

This commit is contained in:
Dan Hawkins 2022-03-01 23:13:05 +00:00
commit 3730461511

View file

@ -58,14 +58,14 @@ pipeline {
def releases = new ArrayList<String>()
for (release in allreleases) {
def boolean canadd = true
if (FILTER_REDUNDANT_RELEASES) {
if (FILTER_REDUNDANT_RELEASES == 'true') {
def results = rt.startswithspecialprefix(release)
if (results.prefixfound) {
canadd = false
echo "Found prefix in ${release}"
}
}
if (FILTER_LONGNAME_RELEASES) {
if (FILTER_LONGNAME_RELEASES == 'true') {
if (release.findAll(/[a-zA-Z]/)) {
canadd = false
echo "${release} is a long name"