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:
parent
cb652173f6
commit
f98bc791e6
9 changed files with 160 additions and 25 deletions
|
@ -35,7 +35,23 @@ update_symlinks() {
|
|||
done
|
||||
}
|
||||
|
||||
upload() {
|
||||
rsync -e 'ssh -i /root/.ssh/id_rsa' "$@" ia64@nightheron.gentoo.org:
|
||||
}
|
||||
|
||||
post_build() {
|
||||
rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-*${DATESTAMP}*.bz2* ${BUILD_SRCDIR_BASE}/builds/default/*${DATESTAMP}*.iso* ia64@nightheron.gentoo.org:
|
||||
local set=$1 spec=$2
|
||||
|
||||
pushd "${BUILD_SRCDIR_BASE}/builds/default" >/dev/null
|
||||
|
||||
case ${spec} in
|
||||
installcd-stage2*)
|
||||
upload *${DATESTAMP}*.iso*
|
||||
;;
|
||||
stage3.spec)
|
||||
upload stage3-*${DATESTAMP}*.bz2*
|
||||
;;
|
||||
esac
|
||||
|
||||
popd >/dev/null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue