summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-18 11:10:11 +0200
committerErich Eckner <git@eckner.net>2018-06-18 11:10:11 +0200
commit6a08e2e97d13e25f22d3447496906497e5c337d5 (patch)
tree06d40b4ffb5849f8c8f6ad64cb9b53d308acbd95 /bin
parent14f8cddb8a8d38c8cc07df54cfad7cb2aa0fb594 (diff)
downloadbuilder-6a08e2e97d13e25f22d3447496906497e5c337d5.tar.xz
bin/return-assignment: mark log_file as existent when putting new entry into failed_builds
Diffstat (limited to 'bin')
-rwxr-xr-xbin/return-assignment6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 1eba7ac..e761b61 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -138,14 +138,14 @@ if [ "$5" = 'ERROR' ]; then
1 s/^/INSERT INTO `failures` (`date`,`reason`,`log_file`) VALUES /
s/,$/;\n/
'
- printf 'INSERT INTO `failed_builds` (`build_slave`,`build_assignment`,`date`,`reason`,`log_file`)'
+ printf 'INSERT INTO `failed_builds` (`build_slave`,`build_assignment`,`date`,`reason`,`log_file`,`log_file_exists`)'
printf ' SELECT '
printf 'from_base64("%s"),' \
"$(printf '%s' "${slave_id}" | base64 -w0)" \
"$(printf '%s' "${build_assignment_id}" | base64 -w0)"
printf '`failures`.`%s`,' \
- 'date' 'reason' 'log_file' | \
- sed 's/,$//'
+ 'date' 'reason' 'log_file'
+ printf '1'
printf ' FROM `failures`;\n'
printf 'DROP TEMPORARY TABLE `failures`;\n'
printf 'COMMIT;\n'