diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-20 20:22:34 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-20 20:52:52 +0100 |
commit | ba94d6f11d5f3e5e92755d14272aeef35b156429 (patch) | |
tree | 506afaf0ec93ab5667c975e1fef11f59b999a4c0 /bin/reproducible_common.sh | |
parent | 7e1e04e2a1b18b4c83b094da19143bd7d4d6a6ca (diff) | |
download | jenkins.debian.net-ba94d6f11d5f3e5e92755d14272aeef35b156429.tar.xz |
eproducible: support for saving artifacts from the builds. use 'artifacts' as the first package when manual scheduling and packages will save files!
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index f428d6ad..7f318e14 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -79,8 +79,10 @@ schedule_packages() { # so schedule them in the past, so they are picked earlier :) DATE="2014-10-01 00:23" TMPFILE=$(mktemp) + ARTIFACTS=$1 + shift for PKG_ID in $@ ; do - echo "REPLACE INTO schedule (package_id, date_scheduled, date_build_started) VALUES ('$PKG_ID', '$DATE', '');" >> $TMPFILE + echo "REPLACE INTO schedule (package_id, date_scheduled, date_build_started, save_artifacts) VALUES ('$PKG_ID', '$DATE', '', '$ARTIFACTS');" >> $TMPFILE done cat $TMPFILE | sqlite3 -init $INIT ${PACKAGES_DB} rm $TMPFILE |