diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-04-23 17:26:40 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-04-25 13:08:08 +0200 |
commit | 9c1c845a51249714a528133a65ba89c70469e472 (patch) | |
tree | 07718060c6b11d3ee5018ddf8c583a72ee9eba10 /bin/reproducible_db_maintenance.py | |
parent | 8afbbad8f7da157097fb05d57d01583c03e55ddd (diff) | |
download | jenkins.debian.net-9c1c845a51249714a528133a65ba89c70469e472.tar.xz |
reproducible: add a sane mean to notify the IRC channel when builds finish.
* new column in the database, schedule table
* turn $SAVE_ARTIFACTS a true boolean, 0→no artifacts, 1→yes artifacts
* $NOTIFY in the build script is text containg a keyword:
+ if empty no notification will be sent
+ if "debbindiff" a "$DBDVERSION had trouble with these" will be sent
+ if "failure" a "no artifacts could have been saved"-like will be sent
+ any other value trigs a normal message
* adapt the maintenance script and the manual scheduler to cope with the new
column
Diffstat (limited to 'bin/reproducible_db_maintenance.py')
-rwxr-xr-x | bin/reproducible_db_maintenance.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_db_maintenance.py b/bin/reproducible_db_maintenance.py index 003ae32b..f69e83b8 100755 --- a/bin/reproducible_db_maintenance.py +++ b/bin/reproducible_db_maintenance.py @@ -361,6 +361,10 @@ schema_updates = { architecture TEXT NOT NULL, PRIMARY KEY (name, suite, architecture))''', 'INSERT INTO rb_schema VALUES ("11", "' + now + '")'], + 12: [ # refactor the artifacts handling, splitting artifacts savind from + # IRC notification + 'ALTER TABLE schedule ADD COLUMN notify TEXT', + 'INSERT INTO rb_schema VALUES ("12", "' + now + '")'], } |