Skip to content
Snippets Groups Projects

Add logging for envvar value if bad format

Merged Martin Lowe requested to merge (removed):malowe/master/envvar-logging into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -59,7 +59,7 @@ elsif (gl_repo =~ /^wiki-/) then
puts "Commit is associated with a wiki, and does not need to be validated. Skipping."
exit 0
elsif (gl_repo !~ /^project-/) then
puts "GL_REPOSITORY envvar is improperly set does not match expected format, cannot validate"
puts "GL_REPOSITORY envvar is improperly set does not match expected format (#{gl_repo}), cannot validate"
exit 1
end
## Get the project ID from env var, extracting from pattern 'project-###'
Loading