From 21fd0ff9341f4ec3c51421158a3ea796474e4ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 9 Mar 2012 16:57:47 +0100 Subject: Bug#652634: Allow to copy additional files out of the build directory On Sat, Dec 24, 2011 at 05:22:05PM +0900, Junichi Uekawa wrote: > Hi, > > I'd use a shell array for specifying the values; but yes I think I > too wanted this feature at one point. Attached is a patch that uses a shell array and adds some documentation. Please apply if you see fit. > Would list of filename (I will imagine there will be requests for all > sorts of wildcards after release, which is kind of a pain) be useful > or a directory that a post-build script can write to after build be > useful? (I think qemubuilder needed something to do with a specific > directory that you can write to, but I will need to check how I did > it). I'd be great to have this in first and see how others use it. It wouldn't be a problem to introduce an ADDITIONAL_BUILD_RESULTS_DIR later. Cheers, -- Guido >From ad3569e07a9cc64cd5b126193cddf311e48180a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 19 Dec 2011 13:31:59 +0100 Subject: [PATCH] Add ADDITIONAL_BUILDRESULTS variable this can be used to copy additional build results out of the build directory. It's useful to e.g. preserve a xml testresult file when using a build system like Jenkins. --- pbuilder-buildpackage | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index e9b0dbb..c39f21d 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -171,6 +171,12 @@ if [ -d "${BUILDRESULT}" ]; then cp -p ${FILE} "${BUILDRESULT}" || true fi done + if [ -n "${ADDITIONAL_BUILDRESULTS}" ]; then + echo "Saving additional results ${ADDITIONAL_BUILDRESULTS[*]}" + for FILE in ${ADDITIONAL_BUILDRESULTS[*]}; do + cp -a "${BUILDPLACE}/tmp/buildd/"*"/${FILE}" "${BUILDRESULT}" || true + done + fi else log "E: BUILDRESULT=[$BUILDRESULT] is not a directory." fi -- cgit v1.2.3