CLEANUP: separated the two diff steps in before_script; made the regexp to check for -SNAPSHOT in application.properties a bit less restrictive just in case a trailing whitespace, or a comment follows after SNAPSHOT