X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=scripts%2Fjjb-init-project.py;h=f5608d198109bf6178391377fd75d50b22eb6952;hb=fe95b0a5fead002e9dc3078d7e13c1dfb07d0c69;hp=ef7ec41a0e69754590af61606b6d2dd28e19b8d1;hpb=f741a091a4c453c63b4c67bdceb36b7a67bdcd04;p=releng%2Fbuilder.git diff --git a/scripts/jjb-init-project.py b/scripts/jjb-init-project.py index ef7ec41a0..f5608d198 100644 --- a/scripts/jjb-init-project.py +++ b/scripts/jjb-init-project.py @@ -194,5 +194,8 @@ with open(project_file, "w") as outfile: line = re.sub("EMAIL_PREFIX", email_prefix, line) line = re.sub("SONAR_BRANCH", sonar_branch, line) line = re.sub("ARCHIVE_ARTIFACTS", archive_artifacts, line) + # The previous command may have created superfluous lines. + # If a line has no non-whitespace, it has to be '\n' only. + line = re.sub(r'^\s+\n', "", line) outfile.write(line) outfile.write("\n")