diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-24 10:04:15 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-24 10:04:15 +0100 |
commit | 3e3e975df56e6048594b1eaaed5ddbeab80918fb (patch) | |
tree | 8e71975e78b060603cc7351afc11ce6e8b875b97 /app | |
parent | 2530d1abf4cbfd8ae0743b42c6ced5b44bd453ce (diff) | |
download | govuk-mini-environment-admin-3e3e975df56e6048594b1eaaed5ddbeab80918fb.tar govuk-mini-environment-admin-3e3e975df56e6048594b1eaaed5ddbeab80918fb.tar.gz |
Guard against invalid build outputs
Which seem to be a possibility if the job is forcefully stopped.
Diffstat (limited to 'app')
-rw-r--r-- | app/services/govuk_guix/build_mini_environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/govuk_guix/build_mini_environment.rb b/app/services/govuk_guix/build_mini_environment.rb index 9bce8b5..a0361b0 100644 --- a/app/services/govuk_guix/build_mini_environment.rb +++ b/app/services/govuk_guix/build_mini_environment.rb @@ -60,6 +60,9 @@ module GovukGuix::BuildMiniEnvironment ) build_output = output.last.strip + + raise 'InvalidOutput' unless build_output.starts_with? '/gnu/store' + logger.debug(self.class) { "build_output: #{build_output}" } mini_environment.update( |