catalyst-auto: pass current targets down to post_build

Commit b7e493b4e4 (run trigger_post_build
after every successful spec) broke a lot of builders.  The configs were
written to be called only after everything was done, but by calling it
after the first build (stage1 only), all the other artifacts we expected
did not yet exist.

Change post_build to pass the current set & spec name down so the config
can figure out what is available at that point in time.
This commit is contained in:
Mike Frysinger 2018-01-15 20:52:14 -05:00
parent cb652173f6
commit f98bc791e6
9 changed files with 160 additions and 25 deletions

View file

@ -38,8 +38,20 @@ update_symlinks() {
done
}
upload() {
rsync -e 'ssh -i /root/.ssh/id_rsa' "$@" arm@nightheron.gentoo.org:
}
post_build() {
rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-${SUBARCH}-*${DATESTAMP}*.tar.bz2* arm@nightheron.gentoo.org:
# Need to update this still.
local set=$1 spec=$2
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
case ${spec} in
stage3.spec)
upload stage3-${SUBARCH}-*${DATESTAMP}*.tar.bz2*
;;
esac
popd >/dev/null
}