Manage when the filter is empty.

This commit is contained in:
Manuele Simi 2021-02-03 21:18:00 -05:00
parent 28b3da1a96
commit 685bee0b2f
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -180,7 +180,7 @@ def exec(repo_url, repo_name) {
output = sh(script: bashWrapper, returnStdout: true)?.trim() output = sh(script: bashWrapper, returnStdout: true)?.trim()
} }
} }
if (filter_with && output.contains(filter_with)) { if ((!filter) || (filter_with && output.contains(filter_with))) {
def xml_action = """ def xml_action = """
<action repo="${repo_url}"> <action repo="${repo_url}">
<stdout> <stdout>