diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-11 23:55:20 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-11 23:55:20 +0100 |
commit | 577f618a9cf91e42c6bf324ab02508e923b7244b (patch) | |
tree | 8cc1442e0a7d3389a972a43a7d8dce8f36f5f42b /jenkinstool | |
parent | 35fba06301cd91e9de6a523ba34a93bd7f411ed0 (diff) | |
download | jenkinstool-577f618a9cf91e42c6bf324ab02508e923b7244b.tar.gz |
Build downloaded package, and upload built packages
Diffstat (limited to 'jenkinstool')
-rwxr-xr-x | jenkinstool | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/jenkinstool b/jenkinstool index 0db678a..e86888d 100755 --- a/jenkinstool +++ b/jenkinstool @@ -270,8 +270,16 @@ case "$sourcepkg" in *) subdir=$(echo "$sourcepkg" | cut -c1) ;; esac dsc="${sourcepkg}_${version}-1.dsc" -(cd .. && dget -du "$poolurl/$subdir/$sourcepkg/$dsc") +curdir="$(pwd)" +temp="$(mktemp -d)" +cd "$temp" +dget -u "$poolurl/$subdir/$sourcepkg/$dsc" +cd */. debuild -us -uc $binopt +cd .. +dput "%(global.dput-host)s" "${sourcepkg}_${version}-1_%(host.arch)s.changes" +cd "$curdir" +rm -rf "$temp" ''') self.add_rsync_workspace_from_target(jc) |